scanf != sscanf
authorMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 02:45:24 +0000 (02:45 +0000)
committerMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 02:45:24 +0000 (02:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1816 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_config.c

index 2850951..d68c5ad 100755 (executable)
@@ -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;
                        }