mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[XEN] Fix array ngative accesses in figlet tool.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
fe9a681dcf
commit
e082c0eae9
1 file changed
+3
-2
@@ -1448,8 +1448,9 @@ inchr c;
|
||||
}
|
||||
else {
|
||||
for (k=0;k<smushamount;k++) {
|
||||
outputline[row][outlinelen-smushamount+k] =
|
||||
smushem(outputline[row][outlinelen-smushamount+k],currchar[row][k]);
|
||||
if (outlinelen-smushamount+k >= 0)
|
||||
outputline[row][outlinelen-smushamount+k] =
|
||||
smushem(outputline[row][outlinelen-smushamount+k],currchar[row][k]);
|
||||
}
|
||||
strcat(outputline[row],currchar[row]+smushamount);
|
||||
}
|
||||
|
||||