mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
Fix strdupas to be ast_strdupas
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -711,19 +711,19 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fmts = strdupa(fmt);
|
fmts = ast_strdupa(fmt);
|
||||||
|
|
||||||
stringp=fmts;
|
stringp=fmts;
|
||||||
strsep(&stringp, "|");
|
strsep(&stringp, "|");
|
||||||
ast_log(LOG_DEBUG,"Recording Formats: sfmts=%s\n", fmts);
|
ast_log(LOG_DEBUG,"Recording Formats: sfmts=%s\n", fmts);
|
||||||
sfmt[0] = strdupa(fmts);
|
sfmt[0] = ast_strdupa(fmts);
|
||||||
|
|
||||||
while((fmt = strsep(&stringp, "|"))) {
|
while((fmt = strsep(&stringp, "|"))) {
|
||||||
if (fmtcnt > MAX_OTHER_FORMATS - 1) {
|
if (fmtcnt > MAX_OTHER_FORMATS - 1) {
|
||||||
ast_log(LOG_WARNING, "Please increase MAX_OTHER_FORMATS in app_voicemail.c\n");
|
ast_log(LOG_WARNING, "Please increase MAX_OTHER_FORMATS in app_voicemail.c\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sfmt[fmtcnt++] = strdupa(fmt);
|
sfmt[fmtcnt++] = ast_strdupa(fmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (maxtime)
|
if (maxtime)
|
||||||
|
|||||||
Reference in New Issue
Block a user