[Asterisk-cvs] asterisk/apps app_read.c,1.5,1.6

markster at lists.digium.com markster at lists.digium.com
Wed Jun 2 13:58:59 CDT 2004


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

Modified Files:
	app_read.c 
Log Message:
Fix app_read to return string even if not # terminated (bug #1769)


Index: app_read.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_read.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- app_read.c	9 May 2004 07:51:44 -0000	1.5
+++ app_read.c	2 Jun 2004 18:15:24 -0000	1.6
@@ -86,7 +86,7 @@
 	if (!res) {
 		ast_stopstream(chan);
 		res = ast_app_getdata(chan, filename, tmp, maxdigits, 0);
-		if (!res)
+		if (res > -1)
 			pbx_builtin_setvar_helper(chan, varname, tmp);
 		ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
 	}




More information about the svn-commits mailing list