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 526976 - variable shadowing causes problems
variable shadowing causes problems
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-08 16:36 UTC by Matthias Clasen
Modified: 2008-04-10 01:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (538 bytes, patch)
2008-04-08 16:37 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2008-04-08 16:36:49 UTC
set_bit_panel has local declarations for label and tmp in the EXPRS case that are unnecessary and causes the fortify options in recent gcc to abort, since it insists that a buffer that you pass into an snprintf call cannot be smaller than the size you pass (even if the format would indicate that it is safe...).
Comment 1 Matthias Clasen 2008-04-08 16:37:16 UTC
Created attachment 108870 [details] [review]
patch
Comment 2 Robert Ancell 2008-04-10 01:01:42 UTC
Thanks Matthias, patch applied for 2.22.2:
http://svn.gnome.org/viewvc/gcalctool?view=revision&revision=2069