diff options
author | David Walter Seikel | 2014-01-29 22:05:17 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-29 22:05:17 +1000 |
commit | 42cd2aeb268209f4b31568fcb0da34111775f685 (patch) | |
tree | ae7dffbf48f8a8b5a17242fa3604a63f8ae4352b | |
parent | Document the terminal use of control characters. (diff) | |
download | boxes-42cd2aeb268209f4b31568fcb0da34111775f685.zip boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.gz boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.bz2 boxes-42cd2aeb268209f4b31568fcb0da34111775f685.tar.xz |
Fix memory corruption.
-rw-r--r-- | boxes.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |