Skip to content
Snippets Groups Projects
Commit 1c60de9c authored by Jeremy McNamara's avatar Jeremy McNamara
Browse files

fix typo. Bug #837

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 929f2460
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ char *__ast_strndup(const char *s, size_t n, const char *file, int lineno, const
len = strlen(s) + 1;
if (len > n)
len = n;
ptr = __ast_alloc_region(len, FUNC_STRDUP, file, lineno, func);
ptr = __ast_alloc_region(len, FUNC_STRNDUP, file, lineno, func);
if (ptr)
strcpy(ptr, s);
return ptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment