Commit 7bc33441 authored by Stefan Kost's avatar Stefan Kost

monoscope: we have 64 colors, don't access colors[64]

Fixes remaining invalid read.
parent 0ffd4ff8
......@@ -119,8 +119,8 @@ monoscope_update (struct monoscope_state * stateptr, gint16 data[512])
foo >>= 18;
if (foo > 63)
foo = 63;
if (foo < -64)
foo = -64;
if (foo < -63)
foo = -63;
val = (i + ((foo + 64) << 8));
bar = val;
if ((bar > 0) && (bar < (256 * 128))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment