From 1dbd21dc61952fd119e56e21fa256c4ee4cbbd40 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Fri, 16 May 2003 23:41:49 +0000
Subject: [PATCH] Fix strdupas to be ast_strdupas

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 50cbd02703..911763e1df 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)
-- 
GitLab