mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 07:01:07 +00:00
fix typo. Bug #837
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
astmm.c
2
astmm.c
@@ -211,7 +211,7 @@ char *__ast_strndup(const char *s, size_t n, const char *file, int lineno, const
|
|||||||
len = strlen(s) + 1;
|
len = strlen(s) + 1;
|
||||||
if (len > n)
|
if (len > n)
|
||||||
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)
|
if (ptr)
|
||||||
strcpy(ptr, s);
|
strcpy(ptr, s);
|
||||||
return ptr;
|
return ptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user