aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-29 22:05:17 +1000
committerDavid Walter Seikel2014-01-29 22:05:17 +1000
commit42cd2aeb268209f4b31568fcb0da34111775f685 (patch)
treeae7dffbf48f8a8b5a17242fa3604a63f8ae4352b
parentDocument the terminal use of control characters. (diff)
downloadboxes-42cd2aeb268209f4b31568fcb0da34111775f685.zip
boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.gz
boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.bz2
boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.xz
Fix memory corruption.
-rw-r--r--boxes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/boxes.c b/boxes.c
index 2e856b9..1c1409f 100644
--- a/boxes.c
+++ b/boxes.c
@@ -1998,7 +1998,7 @@ TODO So abort the current CSI and start from scratch.
1998 csFinal[0] = 0; 1998 csFinal[0] = 0;
1999 // Unspecified params default to a value that is command dependant. 1999 // Unspecified params default to a value that is command dependant.
2000 // However, they will never be negative, so we can use -1 to flag a default value. 2000 // However, they will never be negative, so we can use -1 to flag a default value.
2001 for (j = 0; j < sizeof(csParams); j++) 2001 for (j = 0; j < (sizeof(csParams) / sizeof(*csParams)); j++)
2002 csParams[j] = -1; 2002 csParams[j] = -1;
2003 2003
2004 if ('M' == buffer[1]) 2004 if ('M' == buffer[1])