diff options
Diffstat (limited to 'apps/app_speech_utils.c')
-rw-r--r-- | apps/app_speech_utils.c | 6 |
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"); } } |