From ea96823f2626e2a4178eec54f8a78a666d376ac1 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Sat, 1 Nov 2008 18:22:39 +0000 Subject: fix a bunch of potential problems found by gcc 4.3.x, primarily bare strings being passed to printf()-like functions and ignored results from read()/write() and friends git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@153337 f38db490-d61c-443f-a65b-d21fe96a405b --- main/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/translate.c') diff --git a/main/translate.c b/main/translate.c index f68178ecd..598520c07 100644 --- a/main/translate.c +++ b/main/translate.c @@ -585,7 +585,7 @@ static int show_translation_deprecated(int fd, int argc, char *argv[]) } } ast_build_string(&buf, &left, "\n"); - ast_cli(fd, line); + ast_cli(fd, "%s", line); } AST_LIST_UNLOCK(&translators); return RESULT_SUCCESS; @@ -654,7 +654,7 @@ static int show_translation(int fd, int argc, char *argv[]) } } ast_build_string(&buf, &left, "\n"); - ast_cli(fd, line); + ast_cli(fd, "%s", line); } AST_LIST_UNLOCK(&translators); return RESULT_SUCCESS; -- cgit v1.2.3