easylogo: avoid buffer overrun