Re: [Qemu-devel] [PATCH] net: Use g_strdup_printf instead of snprintf.

2014-01-12 Thread Stefan Hajnoczi
On Thu, Jan 09, 2014 at 07:34:27PM +0100, Hani Benhabiles wrote: > 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 > --- > net/net.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Thanks, applie

[Qemu-devel] [PATCH] net: Use g_strdup_printf instead of snprintf.

2014-01-09 Thread Hani Benhabiles
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 --- net/net.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/net.c b/net/net.c index 9db88cc..9363b35 100644 --- a/net/net.c +++ b/net/ne