rem: if (len > 1)
add: if (len >= 1)
context: int terminal_mode ( int fd, struct avrpart * p ){  char  * cmdbuf;  int     i, len;  char  * q;  int     rc;  int     argc;  char ** argv;  rc = 0;  while ((cmdbuf = readline("avrprog> ")) != NULL) {    len = strlen(cmdbuf);    if (len > 1)      add_history(cmdbuf);    /*      * find the start of the command, skipping any white space     */    q = cmdbuf;    while (*q && isspace(*q))      q++;    /* skip blank lines and comments */    if (!*q || (*q == '#'))      continue;    /* tokenize command line */    argc = tokenize(q, &argv);    fprintf(stdout, ">>> ");    for (i=0; i<argc; i++)      fprintf(stdout, "%s ", argv[i]);    fprintf(stdout, "\n");    /* run the command */    rc = do_cmd(fd, p, argc, argv);    free(argv);    if (rc > 0) {      rc = 0;      break;    }    free(cmdbuf);  }  return rc;}