summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/corestr.c')
-rw-r--r--src/lib/util/corestr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/corestr.c b/src/lib/util/corestr.c
index 292320a3311..7c244e8a8bd 100644
--- a/src/lib/util/corestr.c
+++ b/src/lib/util/corestr.c
@@ -141,7 +141,7 @@ char *core_strdup(const char *str)
char *cpy = NULL;
if (str != NULL)
{
- cpy = (char *)osd_malloc(strlen(str) + 1);
+ cpy = (char *)osd_malloc_array(strlen(str) + 1);
if (cpy != NULL)
strcpy(cpy, str);
}