On Fri, Feb 4, 2011 at 12:18 PM, form <[email protected]> wrote:
>
> else
> ++bufloc; // next read will go in the next buf char
For safety's sake...
else
{
++bufloc; // next read will go in the next buf char
if ( bufloc > 255 )
{
// ERROR - buffer overflow - line too long - missing CR? (print
something...)
memset( buf, 0, sizeof( buf ) );
bufloc = 0;
}
}
Looking at that code and knowing that error would crash it... I couldn't
stand it anymore. :)
~ Chris Innanen
~ Nonsanity
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode