Thread
:
Fix sprintf warning
View Single Post
#
4
(
permalink
)
07-02-2006, 08:26 PM
nixcraft
Never say die
User
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power:
10
Do not use %u for large unsigned int format, use %llu i.e.
Replace
Code:
sprintf(buffer, "%u", huge_number);
With
Code:
sprintf(buffer, "%llu", huge_number);
__________________
Vivek
|
My personal blog
Linux Evangelist
Play hard stay cool
nixcraft
View Public Profile
Send a private message to nixcraft
Visit nixcraft's homepage!
Find all posts by nixcraft