fs_cli: fix 32 bits compile

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15966 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-12-15 14:58:20 +00:00
parent 408f28df07
commit 7d6ff98fc6
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ static unsigned char complete(EditLine * el, int ch)
unsigned char ret = CC_REDISPLAY;
if (*lf->cursor) {
snprintf(cmd_str, sizeof(cmd_str), "api console_complete c=%ld;%s\n\n", lf->cursor - lf->buffer, lf->buffer);
snprintf(cmd_str, sizeof(cmd_str), "api console_complete c=%ld;%s\n\n", (long int)(lf->cursor - lf->buffer), lf->buffer);
} else {
snprintf(cmd_str, sizeof(cmd_str), "api console_complete %s\n\n", lf->buffer);
}