mdec.c: fix overread.