Skip to content
Snippets Groups Projects
Commit bd5dcb0b authored by colette's avatar colette Committed by Alam Ed Arias
Browse files

Make sure lump name is zeroed out before writing so it always ends in a terminating char

git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@9047 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd
parent a797e88b
No related branches found
No related tags found
No related merge requests found
......@@ -413,6 +413,7 @@ UINT16 W_LoadWadFile(const char *filename)
lump_p->disksize -= 4;
}
else lump_p->compressed = 0;
memset(lump_p->name, 0x00, 9);
strncpy(lump_p->name, fileinfo->name, 8);
}
free(fileinfov);
......
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