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

[Xen-changelog] [xen-unstable] [TOOLS] fix sizeof() usage in xc_core



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Date 1172501274 0
# Node ID 90f37b1748a8481355c24a22acfd1aeec108f094
# Parent  720afbf740018c55ce984c09bbc61dbeb4f0d74e
[TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
---
 tools/libxc/xc_core.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 720afbf74001 -r 90f37b1748a8 tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     Mon Feb 26 13:56:01 2007 +0000
+++ b/tools/libxc/xc_core.c     Mon Feb 26 14:47:54 2007 +0000
@@ -85,7 +85,7 @@ xc_core_strtab_init(void)
 {
     struct xc_core_strtab *strtab;
     char *strings;
-    strtab = malloc(sizeof(strtab));
+    strtab = malloc(sizeof(*strtab));
     if ( strtab == NULL )
         return NULL;
 

_______________________________________________
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®.