mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
scanf != sscanf
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1119,7 +1119,7 @@ static int handle_context_add_extension(int fd, int argc, char *argv[])
|
||||
if (!strcmp(prior, "hint")) {
|
||||
iprior = PRIORITY_HINT;
|
||||
} else {
|
||||
if (scanf(prior, "%i", &iprior) != 1) {
|
||||
if (sscanf(prior, "%i", &iprior) != 1) {
|
||||
ast_cli(fd, "'%s' is not a valid priority\n", prior);
|
||||
prior = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user