Skip to content
Snippets Groups Projects
Commit 173cd17f authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

remove nonsensical "safety net"

parent 56304d95
No related branches found
No related tags found
No related merge requests found
......@@ -137,8 +137,7 @@ int main(int argc, char *argv[])
fseek(envFd, 0, SEEK_END);
size = ftell(envFd);
rewind(envFd);
envdata = malloc(size + sizeof(char *));
envdata[size] = 0;
envdata = malloc(size);
if (fread(envdata, 1, size, envFd) != (size_t)size) {
perror("Failed to read env file");
doExit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment