aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:01:01 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-14 23:01:01 +0000
commit7a0fe5c93f93c827215ac7ed613130434c77e649 (patch)
treeca14014e3c226332296ae0d687f996e9d8dfe6b2 /apps/app_speech_utils.c
parente95289a0e951770a0233260e49add9df9b20d97a (diff)
Convert uses of strdup() to ast_strdup()
(issue #9983, eliel) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r--apps/app_speech_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_speech_utils.c b/apps/app_speech_utils.c
index 0956e0bab..c18fd6fb8 100644
--- a/apps/app_speech_utils.c
+++ b/apps/app_speech_utils.c
@@ -515,7 +515,7 @@ static int speech_processing_sound(struct ast_channel *chan, void *data)
speech->processing_sound = NULL;
}
- speech->processing_sound = strdup(data);
+ speech->processing_sound = ast_strdup(data);
ast_module_user_remove(u);
@@ -747,8 +747,8 @@ static int speech_background(struct ast_channel *chan, void *data)
speech->results = ast_calloc(1, sizeof(*speech->results));
if (speech->results != NULL) {
speech->results->score = 1000;
- speech->results->text = strdup(dtmf);
- speech->results->grammar = strdup("dtmf");
+ speech->results->text = ast_strdup(dtmf);
+ speech->results->grammar = ast_strdup("dtmf");
}
}