Re: [Qemu-devel] [PATCH] correctly null terminate the process name

2011-10-17 Thread malc
On Tue, 18 Oct 2011, Stefan Weil wrote: > Am 18.10.2011 04:06, schrieb Trevor Saunders: > > strncpy() doesn't garentee the copied string will be null terminated if > > the original is longer than the length to copy. > > > > Signed-off-by: Trevor Saunders > > --- > > os-posix.c |2 +- > > 1

Re: [Qemu-devel] [PATCH] correctly null terminate the process name

2011-10-17 Thread Stefan Weil
Am 18.10.2011 04:06, schrieb Trevor Saunders: strncpy() doesn't garentee the copied string will be null terminated if the original is longer than the length to copy. Signed-off-by: Trevor Saunders --- os-posix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/os-posi

[Qemu-devel] [PATCH] correctly null terminate the process name

2011-10-17 Thread Trevor Saunders
strncpy() doesn't garentee the copied string will be null terminated if the original is longer than the length to copy. Signed-off-by: Trevor Saunders --- os-posix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/os-posix.c b/os-posix.c index dbf3b24..92dcc97 100644 --