mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
Replace strdupa with more portable ast_strdupa
The strdupa function is a GNU extension, and not widely portable. We have an ast_strdupa function used within Asterisk which is preferred. I pulled the definition up from menuselect.c into the menuselect.h header file so it can be shared across menuselect. Change-Id: I9593c97f78386b47dc1e83201e80cb2f62b36c2e
This commit is contained in:
committed by
George Joseph
parent
56a07fbab9
commit
df42f64d62
@@ -211,7 +211,7 @@ static void display_mem_info(WINDOW *menu, struct member *mem, int start_y, int
|
||||
|
||||
if (mem->displayname) {
|
||||
char buf[maxlen + 1];
|
||||
char *displayname = strdupa(mem->displayname);
|
||||
char *displayname = ast_strdupa(mem->displayname);
|
||||
char *word;
|
||||
int current_line = 1;
|
||||
int new_line = 1;
|
||||
|
Reference in New Issue
Block a user