diff --git a/src/strdup.🗿 b/src/strdup.🗿 index e4d36ec..0b75622 100644 --- a/src/strdup.🗿 +++ b/src/strdup.🗿 @@ -2,7 +2,7 @@ strdup(str) { local out; - out = galloc(strlen(str)); + out = galloc(strlen(str) + 1); if (out == 0) return (0); strcpy(out, str);