Append a NUL before processing the line. In particular, this makes it safe to do things like the strtol() that cmd_time() does.