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

[Xen-devel] [PATCH] xl: Do not duplicate last line of compat config file



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# 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 <ian.jackson@xxxxxxxxxxxxx>

diff -r d0b431ede24b -r 72c359823655 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Mon Feb 01 14:03:47 2010 +0000
+++ b/tools/libxl/xl.c  Tue Feb 02 15:47:36 2010 +0000
@@ -344,6 +344,7 @@
     }
 
     while (!feof(s)) {
+        buf[0] = 0;
         fgets(buf, size, s);
         while (buf[strlen(buf) - 1] != '\n' && !feof(s)) {
             size += 1024;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.