fix typo. Bug #837
authorJeremy McNamara <jj@nufone.net>
Wed, 14 Jan 2004 06:28:26 +0000 (06:28 +0000)
committerJeremy McNamara <jj@nufone.net>
Wed, 14 Jan 2004 06:28:26 +0000 (06:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2028 65c4cc65-6c06-0410-ace0-fbb531ad65f3

astmm.c

diff --git a/astmm.c b/astmm.c
index 4738d7a..4d6d302 100755 (executable)
--- a/astmm.c
+++ b/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;
        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;