summaryrefslogtreecommitdiff
path: root/channels/iax2-parser.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-10-01 15:23:19 +0000
committerRussell Bryant <russell@russellbryant.com>2007-10-01 15:23:19 +0000
commitd78463be1eb252fa160c1a6631ff7f43ce5677bb (patch)
tree5c5be0ea22d3b81ee644e5f620052a4f25f14e02 /channels/iax2-parser.c
parent9217a05b01e31e22e57376abeb8707d9ca2d2839 (diff)
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
Diffstat (limited to 'channels/iax2-parser.c')
-rw-r--r--channels/iax2-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index b6c4befcc..0422ab67f 100644
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -82,7 +82,7 @@ static void dump_addr(char *output, int maxlen, void *value, int len)
memcpy(&sin, value, len);
snprintf(output, maxlen, "IPV4 %s:%d", ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port));
} else {
- snprintf(output, maxlen, "Invalid Address");
+ ast_copy_string(output, "Invalid Address", maxlen);
}
}