--- a/shared/util.c 2021-01-05 14:22:23.908595633 +0530 +++ b/shared/util.c 2021-01-05 14:26:31.721134828 +0530 @@ -404,7 +404,9 @@ { char *start, *end; - start = strndupa(path, len); + start = alloca(len+1); + strncpy(start, path, len); + start[len] = '\0'; end = start + len; /*