direct-io.hg

changeset 14129:90f37b1748a8

[TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Mon Feb 26 14:47:54 2007 +0000 (2007-02-26)
parents 720afbf74001
children ca1dd3480540
files tools/libxc/xc_core.c
line diff
     1.1 --- a/tools/libxc/xc_core.c	Mon Feb 26 13:56:01 2007 +0000
     1.2 +++ b/tools/libxc/xc_core.c	Mon Feb 26 14:47:54 2007 +0000
     1.3 @@ -85,7 +85,7 @@ xc_core_strtab_init(void)
     1.4  {
     1.5      struct xc_core_strtab *strtab;
     1.6      char *strings;
     1.7 -    strtab = malloc(sizeof(strtab));
     1.8 +    strtab = malloc(sizeof(*strtab));
     1.9      if ( strtab == NULL )
    1.10          return NULL;
    1.11