[svn-commits] trunk r32702 - /trunk/apps/app_followme.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jun 6 13:47:47 MST 2006


Author: russell
Date: Tue Jun  6 15:47:46 2006
New Revision: 32702

URL: http://svn.digium.com/view/asterisk?rev=32702&view=rev
Log:
use sizeof to determine the size of a buffer

Modified:
    trunk/apps/app_followme.c

Modified: trunk/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_followme.c?rev=32702&r1=32701&r2=32702&view=diff
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Tue Jun  6 15:47:46 2006
@@ -843,8 +843,8 @@
 						if (outbound->cdr) {
 							char tmp[256];
 							ast_cdr_init(outbound->cdr, outbound);
-							snprintf(tmp, 256, "%s/%s", "Local", dialarg);
-							ast_cdr_setapp(outbound->cdr,"FollowMe",tmp);
+							snprintf(tmp, sizeof(tmp), "%s/%s", "Local", dialarg);
+							ast_cdr_setapp(outbound->cdr, "FollowMe", tmp);
 							ast_cdr_update(outbound);
 							ast_cdr_start(outbound->cdr);
 							ast_cdr_end(outbound->cdr);



More information about the svn-commits mailing list