|
From: | Peter Maydell |
Subject: | Re: [Qemu-devel] [PATCH 1/6] qemu-char: Make the filename size for a chardev a #define |
Date: | Mon, 22 Sep 2014 10:20:26 -0700 |
On 22 September 2014 09:59, <address@hidden> wrote: > From: Corey Minyard <address@hidden> > > Signed-off-by: Corey Minyard <address@hidden> > Reviewed-by: Paolo Bonzini <address@hidden> Wouldn't it be better to just drop the max-size restriction by using g_strdup_printf (and then free when done) rather than snprintf into a fixed size buffer? thanks -- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |