[asterisk-commits] russell: trunk r105595 - /trunk/funcs/func_version.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 3 22:57:30 CST 2008


Author: russell
Date: Mon Mar  3 22:57:29 2008
New Revision: 105595

URL: http://svn.digium.com/view/asterisk?view=rev&rev=105595
Log:
Simplify a trivial snprintf() with ast_copy_string()

Modified:
    trunk/funcs/func_version.c

Modified: trunk/funcs/func_version.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_version.c?view=diff&rev=105595&r1=105594&r2=105595
==============================================================================
--- trunk/funcs/func_version.c (original)
+++ trunk/funcs/func_version.c Mon Mar  3 22:57:29 2008
@@ -63,7 +63,7 @@
 
 	ast_debug(1, "VERSION returns %s result, given %s argument\n", response_char, args.info);
 
-	snprintf(buffer, buflen, "%s", response_char);
+	ast_copy_string(buffer, response_char, buflen);
 
 	return 0;
 }




More information about the asterisk-commits mailing list