aboutsummaryrefslogtreecommitdiffstats
path: root/astmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'astmm.c')
-rwxr-xr-xastmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/astmm.c b/astmm.c
index 4738d7af3..4d6d3023f 100755
--- 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;