Fix macOS build.

This commit is contained in:
Andrew Alderwick 2023-01-02 15:23:28 +00:00
parent 50e08f12cd
commit 5cacb3f241
1 changed files with 3 additions and 1 deletions

View File

@ -132,7 +132,9 @@ retry_realpath(const char *file_name)
else else
return NULL; return NULL;
} }
return strdup(r); x = malloc(strlen(r) + 1);
strcpy(x, r);
return x;
} }
static void static void