[Asterisk-cvs] asterisk/apps app_setcidname.c,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Wed Jul 14 04:03:03 CDT 2004


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

Modified Files:
	app_setcidname.c 
Log Message:
Oops forgot one (bug #2038)


Index: app_setcidname.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_setcidname.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_setcidname.c	22 Jun 2004 19:32:52 -0000	1.3
+++ app_setcidname.c	14 Jul 2004 07:48:47 -0000	1.4
@@ -72,7 +72,7 @@
 			strncpy(newcid, l, sizeof(newcid) - 1);
 		}
 	} else
-		strncpy(newcid, tmp, sizeof(newcid));
+		strncpy(newcid, tmp, sizeof(newcid) - 1);
 	ast_set_callerid(chan, !ast_strlen_zero(newcid) ? newcid : NULL, anitoo);
 	LOCAL_USER_REMOVE(u);
 	return res;




More information about the svn-commits mailing list