mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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
This commit is contained in:
parent
e08ef9c367
commit
61e8e1cd02
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user