diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-06-14 23:01:01 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-06-14 23:01:01 +0000 |
commit | b179e2155f886117b68499c5c918c82242728a86 (patch) | |
tree | ca14014e3c226332296ae0d687f996e9d8dfe6b2 /apps/app_minivm.c | |
parent | 5dd9887ac7c638e8460f85ec2a93f5b490f15d6d (diff) |
Convert uses of strdup() to ast_strdup()
(issue #9983, eliel)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r-- | apps/app_minivm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 4960ecf99..682520b1c 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -2333,7 +2333,7 @@ static char *message_template_parse_filebody(char *filename) { static char *message_template_parse_emailbody(const char *configuration) { char *tmpread, *tmpwrite; - char *emailbody = strdup(configuration); + char *emailbody = ast_strdup(configuration); /* substitute strings \t and \n into the apropriate characters */ tmpread = tmpwrite = emailbody; @@ -2678,12 +2678,12 @@ static char *complete_minivm_show_users(const char *line, const char *word, int if (pos > 4) return NULL; if (pos == 3) - return (state == 0) ? strdup("for") : NULL; + return (state == 0) ? ast_strdup("for") : NULL; wordlen = strlen(word); AST_LIST_TRAVERSE(&minivm_accounts, vmu, list) { if (!strncasecmp(word, vmu->domain, wordlen)) { if (domain && strcmp(domain, vmu->domain) && ++which > state) - return strdup(vmu->domain); + return ast_strdup(vmu->domain); /* ignore repeated domains ? */ domain = vmu->domain; } |