mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Make func_env build again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -127,10 +127,10 @@ static int file_read(struct ast_channel *chan, const char *cmd, char *data, char
|
||||
|
||||
if (args.argc > 2) {
|
||||
if ((length = atoi(args.length)) < 1) {
|
||||
ast_log(LOG_WARNING, "Invalid length '%s'. Returning the max (%d)\n", args.length, len);
|
||||
ast_log(LOG_WARNING, "Invalid length '%s'. Returning the max (%d)\n", args.length, (int)len);
|
||||
length = len;
|
||||
} else if (length > len) {
|
||||
ast_log(LOG_WARNING, "Length %d is greater than the max (%d). Truncating output.\n", length, len);
|
||||
ast_log(LOG_WARNING, "Length %d is greater than the max (%d). Truncating output.\n", length, (int)len);
|
||||
length = len;
|
||||
}
|
||||
} else
|
||||
|
Reference in New Issue
Block a user