SW: Fix potential buffer overrun in colormap

From JFSW commit 18d1c68893693e68d0ce7d41bd1eacbec5655d4f

git-svn-id: https://svn.eduke32.com/eduke32@8624 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2020-02-11 06:35:17 +00:00 committed by Christoph Oelckers
parent a2f507d044
commit 8e0407a425
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ InitPalette(void)
// Save default palette
//
memcpy(DefaultPalette, palookup[PALETTE_DEFAULT], 256 * 32);
memcpy(DefaultPalette, palookup[PALETTE_DEFAULT], 256 * numshades);
//
// Dive palettes