After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110680 - trio printf doesn't pass tests/strfunc-test
trio printf doesn't pass tests/strfunc-test
Status: RESOLVED DUPLICATE of bug 106091
Product: glib
Classification: Platform
Component: general
2.2.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 111015 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-04-13 16:32 UTC by Dan Winship
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Dan Winship 2003-04-13 16:32:22 UTC
trio's *snprintf* functions don't allow buffer to be NULL even when max
is 0, making them non-C99-compliant, and making strfunc-test fail.

Changing the assertions from
  assert(VALID(buffer));
to
  assert(VALID(buffer) || max == 0);

makes strfunc-test pass, although I haven't figured out if it could cause
crashes elsewhere
Comment 1 Matthias Clasen 2003-04-17 13:08:39 UTC
*** Bug 111015 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2003-05-05 08:39:47 UTC

*** This bug has been marked as a duplicate of 106091 ***