Fitzsimons, Jeff wrote in message <10685@palm-dev-forum>...
...
>
> // Copy as many characters as will fit.
> StrNCopy(str,pdb->strName,textLen);
...
> StrCat(str,"...");


StrNCopy() does not append a terminator to the string, so "str"
is not terminated.  StrCat() would not know where to start putting
the "...".  If you do a MemSet() to ensure that all of str has been
zeroed it should work.  Or, you could do a StrCopy(str+textLen, "...")
to place the elipses exactly where you think they should go.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to