xl: Do not duplicate last line of compat config file
PATCH 1/1 xl: Do not duplicate last line of compat config file
# HG changeset patch
# User Ian Jackson <[email protected]>
# Date 1265125656 0
# Node ID 72c359823655427fed7418f0a1cdd39d496ec571
# Parent d0b431ede24b0428b635db40fe6177f5d9af3a7d
xl: Do not duplicate last line of config file when trying compat mode.
Signed-off-by Ian Jackson <[email protected]>
tools/libxl/xl.c +1 -0
@@ -344,6 +344,7 @@ }while (!feof (s)) { + buf[0 ] =0 ;fgets (buf, size, s);while (buf[strlen (buf) -1 ] !='\n' && !feof (s)) { size +=1024 ;