Skip to content
Snippets Groups Projects
Commit 1e8aeba0 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 736dc15d
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment