diff --git a/src/w_wad.c b/src/w_wad.c index 79ed1f47..9d6a11fb 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -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);