[asterisk-commits] trunk r20167 - /trunk/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 14 15:22:15 MST 2006


Author: rizzo
Date: Fri Apr 14 17:22:13 2006
New Revision: 20167

URL: http://svn.digium.com/view/asterisk?rev=20167&view=rev
Log:
use ast_strdup instead of strdup


Modified:
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=20167&r1=20166&r2=20167&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Apr 14 17:22:13 2006
@@ -6307,10 +6307,10 @@
 			ast_copy_string(emailtitle,s,sizeof(emailtitle));
 		}
 		if ((s=ast_variable_retrieve(cfg, "general", "emailsubject")))
-			emailsubject = strdup(s);
+			emailsubject = ast_strdup(s);
 		if ((s=ast_variable_retrieve(cfg, "general", "emailbody"))) {
 			char *tmpread, *tmpwrite;
-			emailbody = strdup(s);
+			emailbody = ast_strdup(s);
 
 			/* substitute strings \t and \n into the apropriate characters */
 			tmpread = tmpwrite = emailbody;
@@ -6332,10 +6332,10 @@
                        }
                }
                if ((s=ast_variable_retrieve(cfg, "general", "pagersubject")))
-                       pagersubject = strdup(s);
+                       pagersubject = ast_strdup(s);
                if ((s=ast_variable_retrieve(cfg, "general", "pagerbody"))) {
                        char *tmpread, *tmpwrite;
-                       pagerbody = strdup(s);
+                       pagerbody = ast_strdup(s);
 
                        /* substitute strings \t and \n into the apropriate characters */
                        tmpread = tmpwrite = pagerbody;



More information about the asterisk-commits mailing list