[XEN] Fix array ngative accesses in figlet tool.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-09-15 10:59:18 +01:00
1 parent fe9a681dcf
commit e082c0eae9
1 file changed
+3 -2
+3 -2
View File
@@ -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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.