dect
/
asterisk
Archived
13
0
Fork 0

Fix strdupas to be ast_strdupas

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1034 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-05-16 23:41:49 +00:00
parent ef5af49619
commit e886689934
1 changed files with 3 additions and 3 deletions

View File

@ -711,19 +711,19 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor
return -1;
}
fmts = strdupa(fmt);
fmts = ast_strdupa(fmt);
stringp=fmts;
strsep(&stringp, "|");
ast_log(LOG_DEBUG,"Recording Formats: sfmts=%s\n", fmts);
sfmt[0] = strdupa(fmts);
sfmt[0] = ast_strdupa(fmts);
while((fmt = strsep(&stringp, "|"))) {
if (fmtcnt > MAX_OTHER_FORMATS - 1) {
ast_log(LOG_WARNING, "Please increase MAX_OTHER_FORMATS in app_voicemail.c\n");
break;
}
sfmt[fmtcnt++] = strdupa(fmt);
sfmt[fmtcnt++] = ast_strdupa(fmt);
}
if (maxtime)