On Mon, Feb 04, 2002 at 10:40:29AM -0800, Bob Whiteman wrote:
>
> char *GetResourceString( UInt16 id ) {
> static char string[256];
...
> if ( 255 == i ) string[256] = '\0'; // Make sure the string is
> null-terminated
this writes after the end of the string. A valid index value here is
in range 0 - 255.
Ciao,
Marco
--
========================================================================
Marco Pantaleoni [EMAIL PROTECTED]
Padova, Italy [EMAIL PROTECTED]
elastiC language developer http://www.elasticworld.org
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/