projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0266294
)
Fix a snprintf() warning regarding unsigned int64 format string.
author
Laurent Monin
<geeqie@norz.org>
Thu, 23 Dec 2010 14:35:24 +0000
(15:35 +0100)
committer
Laurent Monin
<zas@norz.org>
Thu, 16 Aug 2012 21:27:07 +0000
(23:27 +0200)
Solved by using "%llu" and type cast to (unsigned long long)
src/metadata.c
patch
|
blob
|
history
diff --git
a/src/metadata.c
b/src/metadata.c
index
20cdd74
..
b91a4bb
100644
(file)
--- a/
src/metadata.c
+++ b/
src/metadata.c
@@
-409,7
+409,7
@@
gboolean metadata_write_int(FileData *fd, const gchar *key, guint64 value)
{
gchar string[50];
- g_snprintf(string, sizeof(string), "%l
d",
value);
+ g_snprintf(string, sizeof(string), "%l
lu", (unsigned long long)
value);
return metadata_write_string(fd, key, string);
}