FLTK logo

Re: [MOD] STR #2306: fltk's use of snprintf() should be hardened -- recommend alternatives

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.bugs  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

Re: [MOD] STR #2306: fltk's use of snprintf() should be hardened -- recommend alternatives Manolo Gouy May 15, 2024  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link:         https://www.fltk.org/str.php?L2306
Version:      1.4-feature


Since VS 2015, function snprintf works correctly under Windows.
Here's what the doc says:
"Beginning with the UCRT in Visual Studio 2015 and Windows 10, snprintf is
no longer identical to _snprintf. The snprintf behavior is now C99 standard
conformant. "

The test program erco-snprintf-test run under Windows in 2024 confirms
this. 
It shows that the error is present if snprintf() is replaced by _snprintf()
 and that there are no longer errors if snprintf() is used.


Link:         https://www.fltk.org/str.php?L2306

[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.