|
|
|
|
|
|
|
|
|
|
xen-devel
[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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] xl: Do not duplicate last line of compat config file,
Ian Jackson <=
|
|
|
|
|