Avoid buffer overrun