diff options
-rw-r--r-- | ext/dl/dl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c index 4a31660980..df8089e5aa 100644 --- a/ext/dl/dl.c +++ b/ext/dl/dl.c @@ -147,7 +147,7 @@ dlstrdup(const char *str) { char *newstr; - newstr = (char*)dlmalloc(strlen(str)); + newstr = (char*)dlmalloc(strlen(str)+1); strcpy(newstr,str); return newstr; |