Marcus Meissner : cmd: Avoid potential buffer overflow (Coverity).