MAX_CMDLINE
len = (num > MAX_CMDLINE -1) ? MAX_CMDLINE -1 : num;
if (fgets(cmdline, MAX_CMDLINE, stdin) == 0)
static char cmdline[MAX_CMDLINE];