dect
/
asterisk
Archived
13
0
Fork 0

revert strncpy->ast_copy_string changes where the semantics are subtly different

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6914 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-10-31 23:28:30 +00:00
parent 4864d10b1d
commit 104f491fc7
1 changed files with 2 additions and 2 deletions

View File

@ -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);