net: Use g_strdup_printf instead of snprintf.
authorHani Benhabiles <kroosec@gmail.com>
Thu, 9 Jan 2014 18:34:27 +0000 (19:34 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 27 Jan 2014 14:44:06 +0000 (15:44 +0100)
commit4bf2c138ddefc6ff17f6c4b947320c60aa0c38a0
tree92720482ef1f706c07efc2c1f031cfbd5a87847c
parent0169c511554cb0014a00290b0d3d26c31a49818f
net: Use g_strdup_printf instead of snprintf.

assign_name() in net/net.c is using snprintf + g_strdup to get the same
result as g_strdup_printf.

Signed-off-by: Hani Benhabiles <kroosec@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net/net.c