diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-16 23:41:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-05-16 23:41:49 +0000 |
commit | e88668993469a912c34a4303b82757251b4b9722 (patch) | |
tree | 7d5cab8ce439ffb1206917b56d318fb7ffba9662 /apps | |
parent | ef5af49619f65d13f179714c552569cc0c40551b (diff) |
Fix strdupas to be ast_strdupas
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1034 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index 50cbd0270..911763e1d 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -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) |