[Asterisk-cvs] asterisk/pbx pbx_config.c,1.29,1.30

markster at lists.digium.com markster at lists.digium.com
Tue Dec 2 20:18:59 CST 2003


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv4078/pbx

Modified Files:
	pbx_config.c 
Log Message:
scanf != sscanf


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- pbx_config.c	23 Nov 2003 22:45:42 -0000	1.29
+++ pbx_config.c	3 Dec 2003 02:45:24 -0000	1.30
@@ -1119,7 +1119,7 @@
     	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;
 			}




More information about the svn-commits mailing list