|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xl: Do not duplicate last line of config
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265190325 0
# Node ID b48b5e68847004aeed118d8941cb4b95578eb2e5
# Parent 2a775968c7a1614d9a799c44d7eec170340d573d
xl: Do not duplicate last line of config file when trying compat mode.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/xl.c | 1 +
1 files changed, 1 insertion(+)
diff -r 2a775968c7a1 -r b48b5e688470 tools/libxl/xl.c
--- a/tools/libxl/xl.c Wed Feb 03 09:45:02 2010 +0000
+++ b/tools/libxl/xl.c Wed Feb 03 09:45:25 2010 +0000
@@ -344,6 +344,7 @@ static char* compat_config_file(const ch
}
while (!feof(s)) {
+ buf[0] = 0;
fgets(buf, size, s);
while (buf[strlen(buf) - 1] != '\n' && !feof(s)) {
size += 1024;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xl: Do not duplicate last line of config file when trying compat mode.,
Xen patchbot-unstable <=
|
|
|
|
|