[Bug 441164] New: trackballs-1.1.4-146.14: 4 * broken printf
https://bugzilla.novell.com/show_bug.cgi?id=441164 Summary: trackballs-1.1.4-146.14: 4 * broken printf Product: openSUSE 11.1 Version: Factory Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just tried to build the OpenSuse factory package trackballs-1.1.4-146.14 and the compiler said image.cc:233: warning: unknown conversion type character ''' in format The source code is fprintf(stderr, "Cannot allocate '%z' bytes.\n", sizeof(IMAGE)); I agree with the compiler, the code is broken. Suggest new code fprintf(stderr, "Cannot allocate '%zu' bytes.\n", sizeof(IMAGE)); Similar fun & games at lines 256, 286 and 62 in the same file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=441164
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=441164
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=441164
User Joseph.Comfort@asu.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c1
--- Comment #1 from Joseph Comfort
https://bugzilla.novell.com/show_bug.cgi?id=441164
User Joseph.Comfort@asu.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c2
--- Comment #2 from Joseph Comfort
https://bugzilla.novell.com/show_bug.cgi?id=441164
User Joseph.Comfort@asu.edu added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c3
Joseph Comfort
https://bugzilla.novell.com/show_bug.cgi?id=441164
User dcb314@hotmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c4
--- Comment #4 from David Binderman
I just tried to build the OpenSuse factory package trackballs-1.1.4-146.14
Still broken a few months later in version trackballs-1.1.4-146.47 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=441164
User dcb314@hotmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c5
David Binderman
https://bugzilla.novell.com/show_bug.cgi?id=441164
User jasbir@f2s.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c6
Jasbir Khatkar
https://bugzilla.novell.com/show_bug.cgi?id=441164
User dcb314@hotmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c7
--- Comment #7 from David Binderman
Just curious but doesn't this error relate to the use of '
Org: fprintf(stderr, "Cannot allocate '%z' bytes.\n", sizeof(IMAGE));
Sug: fprintf(stderr, "Cannot allocate \'%z\' bytes.\n", sizeof(IMAGE));
No. The warning message says the format is wrong i.e. %z' On reading the fine manual "man 3 printf", z is a modifier on the front of one of d, i ,o, u, x or X. ' isn't one of those, so the compiler doesn't like it. Suggest again use %zu that will shut the compiler up. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=441164
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441164#c8
Philipp Thomas
participants (1)
-
bugzilla_noreply@novell.com