projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08ef9c
)
gio/gsubprocess.c: Use g_snprintf()
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 29 Oct 2013 06:49:13 +0000
(14:49 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 29 Oct 2013 14:44:11 +0000
(22:44 +0800)
snprintf() is unfortunately still not universally available, so use
g_snprintf() to ensure the build works on all platforms.
https://bugzilla.gnome.org/show_bug.cgi?id=711049
gio/gsubprocess.c
patch
|
blob
|
history
diff --git
a/gio/gsubprocess.c
b/gio/gsubprocess.c
index
43631d6
..
cafbcbb
100644
(file)
--- a/
gio/gsubprocess.c
+++ b/
gio/gsubprocess.c
@@
-552,7
+552,7
@@
initable_init (GInitable *initable,
identifier = (guint64) self->pid;
#endif
- s = snprintf (self->identifier, sizeof self->identifier, "%"G_GUINT64_FORMAT, identifier);
+ s =
g_
snprintf (self->identifier, sizeof self->identifier, "%"G_GUINT64_FORMAT, identifier);
g_assert (0 < s && s < sizeof self->identifier);
}