mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merged revisions 109396 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r109396 | file | 2008-03-18 12:13:07 -0300 (Tue, 18 Mar 2008) | 3 lines Make sure values are interpreted as character strings and not format strings. (AST-2008-004) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1145,7 +1145,7 @@ void ast_verbose(const char *fmt, ...)
|
||||
|
||||
strcpy(logmsg->str, buf->str);
|
||||
|
||||
ast_log(LOG_VERBOSE, logmsg->str);
|
||||
ast_log(LOG_VERBOSE, "%s", logmsg->str);
|
||||
|
||||
/* Set type */
|
||||
logmsg->type = LOGMSG_VERBOSE;
|
||||
|
@@ -1982,7 +1982,7 @@ static int action_command(struct mansession *s, const struct message *m)
|
||||
term_strip(final_buf, buf, l);
|
||||
final_buf[l] = '\0';
|
||||
}
|
||||
astman_append(s, S_OR(final_buf, buf));
|
||||
astman_append(s, "%s", S_OR(final_buf, buf));
|
||||
ast_free(buf);
|
||||
}
|
||||
close(fd);
|
||||
|
Reference in New Issue
Block a user