From 70f1c82ac2f89c2441ee16dbc5fc106b2161bb90 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 21 Oct 2014 17:47:38 +0000 Subject: [PATCH] translage.c: Fix regression when generating translation path strings. Fix the AMI Status action read and write translation path strings from growing for each channel in the status event list by reseting the ast string given to ast_translate_path_to_str() to fill in the given translation path. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426079 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/translate.c b/main/translate.c index 2778ebccf6..72abb59ebc 100644 --- a/main/translate.c +++ b/main/translate.c @@ -845,6 +845,7 @@ const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str ** return ""; } + ast_str_reset(*str); codec_append_name(&p->t->src_codec, str); while (p) { ast_str_append(str, 0, "->");