From d78463be1eb252fa160c1a6631ff7f43ce5677bb Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 1 Oct 2007 15:23:19 +0000 Subject: Corydon posted this janitor project to the bug tracker and mvanbaak provided a patch for it. It replaces a bunch of simple calls to snprintf with ast_copy_string (closes issue #10843) Reported by: Corydon76 Patches: 2007092900_10843.diff uploaded by mvanbaak (license 7) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84173 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/frame.c') diff --git a/main/frame.c b/main/frame.c index 2a5ab57d0..4575de82c 100644 --- a/main/frame.c +++ b/main/frame.c @@ -555,7 +555,7 @@ char *ast_getformatname_multiple(char *buf, size_t size, int format) } } if (start == end) - snprintf(start, size, "nothing)"); + ast_copy_string(start, "nothing)", size); else if (size > 1) *(end -1) = ')'; return buf; -- cgit v1.2.3