mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-07 10:31:16 +00:00
More contributed BSD enhancements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -248,7 +248,7 @@ static int ind_load_module(void)
|
||||
if (!strcasecmp(v->name, "description")) {
|
||||
strncpy(tones->description, v->value, sizeof(tones->description)-1);
|
||||
} else if (!strcasecmp(v->name,"ringcadance")) {
|
||||
char *ring,*rings = strdupa(v->value);
|
||||
char *ring,*rings = ast_strdupa(v->value);
|
||||
c = rings;
|
||||
ring = strsep(&c,",");
|
||||
while (ring) {
|
||||
@@ -270,7 +270,7 @@ static int ind_load_module(void)
|
||||
ring = strsep(&c,",");
|
||||
}
|
||||
} else if (!strcasecmp(v->name,"alias")) {
|
||||
char *countries = strdupa(v->value);
|
||||
char *countries = ast_strdupa(v->value);
|
||||
c = countries;
|
||||
country = strsep(&c,",");
|
||||
while (country) {
|
||||
|
||||
@@ -611,7 +611,7 @@ unsigned int ast_get_group(char *s)
|
||||
char *c=NULL;
|
||||
int start=0, finish=0,x;
|
||||
unsigned int group = 0;
|
||||
copy = strdupa(s);
|
||||
copy = ast_strdupa(s);
|
||||
if (!copy) {
|
||||
ast_log(LOG_ERROR, "Out of memory\n");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user