summaryrefslogtreecommitdiff
path: root/channels/iax2-parser.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-10-31 23:28:30 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-10-31 23:28:30 +0000
commit033cd4d58f5f2dfa2704ae4f5793be4f55d30576 (patch)
treeb154440c52f6667f837afd72962eec5cd8c7d0a5 /channels/iax2-parser.c
parente86e9a9fe3a637d6de37b8e09a62eb5552f90639 (diff)
revert strncpy->ast_copy_string changes where the semantics are subtly different
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/iax2-parser.c')
-rwxr-xr-xchannels/iax2-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index f0721c4a6..fbb4d0155 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -77,7 +77,7 @@ static void dump_string(char *output, int maxlen, void *value, int len)
maxlen--;
if (maxlen > len)
maxlen = len;
- ast_copy_string(output, value, maxlen);
+ strncpy(output, value, maxlen);
output[maxlen] = '\0';
}
@@ -92,7 +92,7 @@ static void dump_prefs(char *output, int maxlen, void *value, int len)
if (maxlen > len)
maxlen = len;
- ast_copy_string(output, value, maxlen);
+ strncpy(output, value, maxlen);
output[maxlen] = '\0';
ast_codec_pref_convert(&pref, output, total_len, 0);