|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.3-testing] xenconsoled: fix timestamp log
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245753445 -3600
# Node ID 2460b63ff3a35a69682354d8facffed177b85a74
# Parent b3c9c8e6c64a337fef68d03ef7223798fe37658e
xenconsoled: fix timestamp log
timestamp log is broken.
Also, xenconsoled might die with segfault.
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
xen-unstable changeset: 19816:5f5112a7d2ff
xen-unstable date: Tue Jun 23 11:27:54 2009 +0100
---
tools/console/daemon/io.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r b3c9c8e6c64a -r 2460b63ff3a3 tools/console/daemon/io.c
--- a/tools/console/daemon/io.c Tue Jun 23 11:37:04 2009 +0100
+++ b/tools/console/daemon/io.c Tue Jun 23 11:37:25 2009 +0100
@@ -127,7 +127,7 @@ static int write_with_timestamp(int fd,
const char *last_byte = data + sz - 1;
while (data <= last_byte) {
- const char *nl = memchr(data, '\n', sz);
+ const char *nl = memchr(data, '\n', last_byte + 1 - data);
int found_nl = (nl != NULL);
if (!found_nl)
nl = last_byte;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.3-testing] xenconsoled: fix timestamp log,
Xen patchbot-3.3-testing <=
|
|
|
|
|