debuggers.hg

changeset 20933:b48b5e688470

xl: Do not duplicate last line of config file when trying compat mode.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 03 09:45:25 2010 +0000 (2010-02-03)
parents 2a775968c7a1
children 02107eca8fb7
files tools/libxl/xl.c
line diff
     1.1 --- a/tools/libxl/xl.c	Wed Feb 03 09:45:02 2010 +0000
     1.2 +++ b/tools/libxl/xl.c	Wed Feb 03 09:45:25 2010 +0000
     1.3 @@ -344,6 +344,7 @@ static char* compat_config_file(const ch
     1.4      }
     1.5  
     1.6      while (!feof(s)) {
     1.7 +        buf[0] = 0;
     1.8          fgets(buf, size, s);
     1.9          while (buf[strlen(buf) - 1] != '\n' && !feof(s)) {
    1.10              size += 1024;