WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [TOOLS] fix sizeof() usage in xc_core
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Feb 2007 15:45:39 -0800
Delivery-date: Mon, 26 Feb 2007 15:45:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [TOOLS] fix sizeof() usage in xc_core, Xen patchbot-unstable <=