diff options
| author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-10-29 14:49:13 +0800 |
|---|---|---|
| committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2013-10-29 22:44:11 +0800 |
| commit | 61e8e1cd02cc9b9ae8917262ecc17633312b7683 (patch) | |
| tree | 72e2b36a9bfe86d8326845678e3be1605fc051aa /gio/gsubprocess.c | |
| parent | e08ef9c367c4ad7c7d18b33b26465e8afbc895f3 (diff) | |
| download | glib-61e8e1cd02cc9b9ae8917262ecc17633312b7683.tar.gz | |
gio/gsubprocess.c: Use g_snprintf()
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
Diffstat (limited to 'gio/gsubprocess.c')
| -rw-r--r-- | gio/gsubprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c index 43631d6bd..cafbcbb50 100644 --- 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); } |
