On Saturday 13 October 2007 11:56, Maik Justus wrote: > Hi Durk, > > Durk Talsma schrieb am 13.10.2007 11:44: > > Just curious: Do you have an example of that? I did a grep for '\0'on the > > source tree, but didn't come up with anything resembling such a use of > > snprintf. > > Maybe you need to grep for = 0. > But I think it should be easier to trace into snprintf inside your > debugger to check, if there is a modification of that function, and if > not: add such a function "snprintf0". > > Maik > >
Okay thanks. Looking at the man page again, I found that my safeguarding code is also not yet foolproof. According to the man page: "If the return value is >= max, truncation has occurred". My safeguarding code only checks for > max though. Not a hard thing to fix though... :-) Cheers, Durk ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel