From 42cd2aeb268209f4b31568fcb0da34111775f685 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 29 Jan 2014 22:05:17 +1000 Subject: Fix memory corruption. --- boxes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. csFinal[0] = 0; // Unspecified params default to a value that is command dependant. // However, they will never be negative, so we can use -1 to flag a default value. - for (j = 0; j < sizeof(csParams); j++) + for (j = 0; j < (sizeof(csParams) / sizeof(*csParams)); j++) csParams[j] = -1; if ('M' == buffer[1]) -- cgit v1.1