projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e86e9a9
)
revert strncpy->ast_copy_string changes where the semantics are subtly different
author
Kevin P. Fleming
<kpfleming@digium.com>
Mon, 31 Oct 2005 23:28:30 +0000
(23:28 +0000)
committer
Kevin P. Fleming
<kpfleming@digium.com>
Mon, 31 Oct 2005 23:28:30 +0000
(23:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6914
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/iax2-parser.c
patch
|
blob
|
history
diff --git
a/channels/iax2-parser.c
b/channels/iax2-parser.c
index
f0721c4
..
fbb4d01
100755
(executable)
--- 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);