* [Qemu-devel] [5086] Fix error introduced by r5044
@ 2008-08-25 20:03 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-08-25 20:03 UTC (permalink / raw)
To: qemu-devel
Revision: 5086
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5086
Author: blueswir1
Date: 2008-08-25 20:03:28 +0000 (Mon, 25 Aug 2008)
Log Message:
-----------
Fix error introduced by r5044
qemu_strdup() doesn't copy a last character because of off by one error.
Signed-off-by: Gleb Natapov <gleb@qumranet.com>
Modified Paths:
--------------
trunk/qemu-malloc.c
Modified: trunk/qemu-malloc.c
===================================================================
--- trunk/qemu-malloc.c 2008-08-25 19:43:53 UTC (rev 5085)
+++ trunk/qemu-malloc.c 2008-08-25 20:03:28 UTC (rev 5086)
@@ -60,6 +60,6 @@
ptr = qemu_malloc(len + 1);
if (!ptr)
return NULL;
- pstrcpy(ptr, len, str);
+ pstrcpy(ptr, len + 1, str);
return ptr;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-25 20:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 20:03 [Qemu-devel] [5086] Fix error introduced by r5044 Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).