[svn-commits] trunk r31586 - /trunk/build_tools/menuselect_curses.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 1 15:17:01 MST 2006


Author: russell
Date: Thu Jun  1 17:17:01 2006
New Revision: 31586

URL: http://svn.digium.com/view/asterisk?rev=31586&view=rev
Log:
use strcpy instead of snprintf in a couple places

Modified:
    trunk/build_tools/menuselect_curses.c

Modified: trunk/build_tools/menuselect_curses.c
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/menuselect_curses.c?rev=31586&r1=31585&r2=31586&view=diff
==============================================================================
--- trunk/build_tools/menuselect_curses.c (original)
+++ trunk/build_tools/menuselect_curses.c Thu Jun  1 17:17:01 2006
@@ -160,7 +160,7 @@
 	}
 	if (!AST_LIST_EMPTY(&curmem->deps)) {
 		wmove(menu, end - start + 3, max_x / 2 - 16);
-		snprintf(buf, sizeof(buf), "Depends on: ");
+		strcpy(buf, "Depends on: ");
 		AST_LIST_TRAVERSE(&curmem->deps, dep, list) {
 			strncat(buf, dep->name, sizeof(buf) - strlen(buf) - 1);
 			if (AST_LIST_NEXT(dep, list))
@@ -170,7 +170,7 @@
 	}
 	if (!AST_LIST_EMPTY(&curmem->conflicts)) {
 		wmove(menu, end - start + 4, max_x / 2 - 16);
-		snprintf(buf, sizeof(buf), "Conflicts with: ");
+		strcpy(buf, "Conflicts with: ");
 		AST_LIST_TRAVERSE(&curmem->conflicts, con, list) {
 			strncat(buf, con->name, sizeof(buf) - strlen(buf) - 1);
 			if (AST_LIST_NEXT(con, list))



More information about the svn-commits mailing list