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
This commit is contained in:
RedEnchilada authored and Alam Ed Arias committed 2015-03-31 18:00:14 -04:00
1 parent a797e88bb9
commit bd5dcb0b0a
1 file changed
+1
+1
View File
@@ -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);