From: Russell Bryant Date: Thu, 1 Jun 2006 22:17:01 +0000 (+0000) Subject: use strcpy instead of snprintf in a couple places X-Git-Tag: 1.4.0-beta1~1103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e8aeba003acb58f1a4fb090e291583162cc2698;p=thirdparty%2Fasterisk.git use strcpy instead of snprintf in a couple places git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31586 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/build_tools/menuselect_curses.c b/build_tools/menuselect_curses.c index 7c684bd49d..77f323a31a 100644 --- a/build_tools/menuselect_curses.c +++ b/build_tools/menuselect_curses.c @@ -160,7 +160,7 @@ void draw_category_menu(WINDOW *menu, struct category *cat, int start, int end, } 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 @@ void draw_category_menu(WINDOW *menu, struct category *cat, int start, int end, } 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))