[svn-commits] russell: branch russell/smdi-1.4 r104017 - /team/russell/smdi-1.4/res/res_smdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Feb 21 10:29:59 CST 2008


Author: russell
Date: Thu Feb 21 10:29:58 2008
New Revision: 104017

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104017
Log:
Don't put a space into the calling station buffer

Modified:
    team/russell/smdi-1.4/res/res_smdi.c

Modified: team/russell/smdi-1.4/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/team/russell/smdi-1.4/res/res_smdi.c?view=diff&rev=104017&r1=104016&r2=104017
==============================================================================
--- team/russell/smdi-1.4/res/res_smdi.c (original)
+++ team/russell/smdi-1.4/res/res_smdi.c Thu Feb 21 10:29:58 2008
@@ -565,11 +565,13 @@
 				if (!isdigit((c = fgetc(iface->file)))) {
 					*cp = '\0';
 					ast_log(LOG_DEBUG, "Read a '%c', but didn't store it in the calling station buffer because it's not a digit\n", c);
-					if (c != ' ') {
+					if (c == ' ') {
 						/* Don't break on a space.  We may read the space before the calling station
 						 * here if the forwarding station buffer filled up. */
-						break;
+						i--; /* We're still on the same character */
+						continue;
 					}
+					break;
 				}
 
 				/* store c in md_msg->calling_st */




More information about the svn-commits mailing list