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

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


Author: russell
Date: Tue Jun  6 15:45:26 2006
New Revision: 32701

URL: http://svn.digium.com/view/asterisk?rev=32701&view=rev
Log:
use sizeof to get 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=32701&r1=32700&r2=32701&view=diff
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Tue Jun  6 15:45:26 2006
@@ -438,7 +438,7 @@
 		}
 		if (outbound->cdr) {
 			char tmp[256];
-			snprintf(tmp, 256, "%s/%s", "Local", tmpuser->dialarg);
+			snprintf(tmp, sizeof(tmp), "%s/%s", "Local", tmpuser->dialarg);
 			ast_cdr_setapp(outbound->cdr,"FollowMe",tmp);
 			ast_cdr_update(outbound);
 			ast_cdr_start(outbound->cdr);



More information about the svn-commits mailing list