[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] console daemon: Fix realloc() usage.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181034015 -3600
# Node ID 91301122db5128d8d94e90638c5a272479621f68
# Parent  f45c84dd5f4133feae766082acc6e449a42c4116
console daemon: Fix realloc() usage.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/console/daemon/io.c |    1 +
 1 files changed, 1 insertion(+)

diff -r f45c84dd5f41 -r 91301122db51 tools/console/daemon/io.c
--- a/tools/console/daemon/io.c Tue Jun 05 09:59:34 2007 +0100
+++ b/tools/console/daemon/io.c Tue Jun 05 10:00:15 2007 +0100
@@ -191,6 +191,7 @@ static int create_domain_log(struct doma
                free(namepath);
                return -1;
        }
+       namepath = s;
        strcat(namepath, "/name");
        data = xs_read(xs, XBT_NULL, namepath, &len);
        if (!data)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.