mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Fix cppcheck bufferAccessOutOfBounds
This commit is contained in:
parent
b91c28b8d1
commit
a741ceadb8
@ -341,7 +341,7 @@ APTR ami_colormap_to_clut(struct ColorMap *cmap)
|
||||
{
|
||||
int i;
|
||||
UBYTE *clut = AllocVecTags(256 * 4, AVT_ClearWithValue, 0, TAG_DONE); /* NB: Was not MEMF_PRIVATE */
|
||||
ULONG colour[3 * 256];
|
||||
ULONG colour[256 * 4];
|
||||
|
||||
if(!clut) return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user