13 Jun
2006
13 Jun
'06
9:41 p.m.
Author: mikej Date: Tue Jun 13 17:41:16 2006 New Revision: 1616 Modified: freeswitch/trunk/src/switch_console.c Log: fix off by 1 in console cmd handling. Thanks trixter for identifying this. Modified: freeswitch/trunk/src/switch_console.c ============================================================================== --- freeswitch/trunk/src/switch_console.c (original) +++ freeswitch/trunk/src/switch_console.c Tue Jun 13 17:41:16 2006 @@ -198,7 +198,7 @@ } memset(&cmd, 0, sizeof(cmd)); - for (x = 0; x < sizeof(cmd); x++) { + for (x = 0; x < (sizeof(cmd)-1); x++) { cmd[x] = (char) getchar(); if (cmd[x] == '\n') { cmd[x] = '\0';
7450
Age (days ago)
7450
Last active (days ago)
0 comments
1 participants
participants (1)
-
mikej@freeswitch.org