|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Use memmove instead of memcpy for overlapping areas (con
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 6692dd873e21d74073a3c61d5905e55ee0ffd8be
# Parent 3c05406f5e0acc37eb3e59311c7d1c3cf245dc29
Use memmove instead of memcpy for overlapping areas (console scroll).
Use memset instead of memcpy to clear line.
Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
diff -r 3c05406f5e0a -r 6692dd873e21 xen/drivers/char/console.c
--- a/xen/drivers/char/console.c Thu Apr 13 10:24:00 2006
+++ b/xen/drivers/char/console.c Thu Apr 13 10:25:03 2006
@@ -180,12 +180,10 @@
if (ypos >= LINES)
{
- static char zeroarr[2*COLUMNS] = { 0 };
ypos = LINES-1;
- memcpy((char*)video,
- (char*)video + 2*COLUMNS, (LINES-1)*2*COLUMNS);
- memcpy((char*)video + (LINES-1)*2*COLUMNS,
- zeroarr, 2*COLUMNS);
+ memmove((char*)video,
+ (char*)video + 2*COLUMNS, (LINES-1)*2*COLUMNS);
+ memset((char*)video + (LINES-1)*2*COLUMNS, 0, 2*COLUMNS);
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Use memmove instead of memcpy for overlapping areas (console scroll).,
Xen patchbot -unstable <=
|
|
|
|
|