Re #1643: Fix crash due to insufficient command buffer size in get_cmd_name()

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4589 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Riza Sulistyo 2013-09-05 03:50:22 +00:00
parent 973c64d9ed
commit 850f8872a3
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@
/**
* Maximum length of command buffer.
* Default: 120
* Default: 512
*/
#ifndef PJ_CLI_MAX_CMDBUF
# define PJ_CLI_MAX_CMDBUF 512

View File

@ -34,7 +34,7 @@
#define CLI_CMD_CHANGE_LOG 30000
#define CLI_CMD_EXIT 30001
#define MAX_CMD_HASH_NAME_LENGTH 64
#define MAX_CMD_HASH_NAME_LENGTH PJ_CLI_MAX_CMDBUF
#define MAX_CMD_ID_LENGTH 16
#if 1