use strcpy instead of snprintf in a couple places
authorRussell Bryant <russell@russellbryant.com>
Thu, 1 Jun 2006 22:17:01 +0000 (22:17 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 1 Jun 2006 22:17:01 +0000 (22:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31586 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/menuselect_curses.c

index 7c684bd..77f323a 100644 (file)
@@ -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))