[PATCH 1/1] cli: avoid buffer overrun