Andy Ross writes:
>
>I got bitten by some static data corruption problems 
>
>  sprintf(buffer, "%05.2f", value);
>
>In my copy, I fixed this with snprintf, but something nags at me that
>this isn't portable to some platform we care about. 


#include <simgear/compiler.h>

should take care of snprintf portability problems

BTW - good catch

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to