Manually count the args fed through exec_cmd to prevent buffer overflow
that's mentioned as a possibility here. However, no formal testing's
been done yet.