Re: [Qemu-devel] [PATCH 4/4] 9pfs: introduce v9fs_path_sprintf() helper

2016-09-15 Thread Greg Kurz
On Thu, 15 Sep 2016 17:09:08 +0200 Cédric Le Goater wrote: > On 09/15/2016 04:24 PM, Greg Kurz wrote: > > This helper is similar to v9fs_string_sprintf(), but it includes the > > terminating NUL character in the size field. > > NULL > The null character is often abbreviated NUL. https://en.

Re: [Qemu-devel] [PATCH 4/4] 9pfs: introduce v9fs_path_sprintf() helper

2016-09-15 Thread Cédric Le Goater
On 09/15/2016 04:24 PM, Greg Kurz wrote: > This helper is similar to v9fs_string_sprintf(), but it includes the > terminating NUL character in the size field. NULL > This is to avoid doing v9fs_string_sprintf((V9fsString *) &path) and > then bumping the size. > > Affected users are changed to us

[Qemu-devel] [PATCH 4/4] 9pfs: introduce v9fs_path_sprintf() helper

2016-09-15 Thread Greg Kurz
This helper is similar to v9fs_string_sprintf(), but it includes the terminating NUL character in the size field. This is to avoid doing v9fs_string_sprintf((V9fsString *) &path) and then bumping the size. Affected users are changed to use this new helper. Signed-off-by: Greg Kurz --- hw/9pfs/