mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
Arrays are 0 indexed in C, duh
This commit is contained in:
parent
4680cbb2dd
commit
dc40a7789c
@ -1041,7 +1041,7 @@ static int read_cookie_from_file(char *filename) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to read cookie file %s : %d.\n", filename, errno);
|
||||
}
|
||||
|
||||
cookie[MAXATOMLEN+1] = '\0';
|
||||
cookie[MAXATOMLEN] = '\0';
|
||||
|
||||
/* replace any end of line characters with a null */
|
||||
if ((end = strchr(cookie, '\n'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user