spice-core: Use g_strdup_printf instead of snprintf
commit6735aa99a43c70c09b53af190b24600a61178b95
authorChristophe Fergeau <cfergeau@redhat.com>
Mon, 2 Sep 2013 13:41:32 +0000 (2 15:41 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Sep 2013 09:14:08 +0000 (10 11:14 +0200)
treedafd27b2e9cc2bc6801c6f219fe9e8f50ae1cb30
parent94c2b6aff43cdfcfdfb552773a6b6b973a72ef0b
spice-core: Use g_strdup_printf instead of snprintf

Several places in spice-core.c were using either g_malloc+snprintf
or snprintf+g_strdup to achieve the same result as g_strdup_printf.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c