Diff for /qemu/readline.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2018/04/24 16:47:08 version 1.1.1.3, 2018/04/24 16:50:22
Line 169  static void term_backword(void) Line 169  static void term_backword(void)
   
     /* find first word (backwards) */      /* find first word (backwards) */
     while (start > 0) {      while (start > 0) {
         if (!isspace(term_cmd_buf[start])) {          if (!qemu_isspace(term_cmd_buf[start])) {
             break;              break;
         }          }
   
Line 178  static void term_backword(void) Line 178  static void term_backword(void)
   
     /* find first space (backwards) */      /* find first space (backwards) */
     while (start > 0) {      while (start > 0) {
         if (isspace(term_cmd_buf[start])) {          if (qemu_isspace(term_cmd_buf[start])) {
             ++start;              ++start;
             break;              break;
         }          }
Line 307  static void term_completion(void) Line 307  static void term_completion(void)
     nb_completions = 0;      nb_completions = 0;
   
     cmdline = qemu_malloc(term_cmd_buf_index + 1);      cmdline = qemu_malloc(term_cmd_buf_index + 1);
     if (!cmdline)  
         return;  
     memcpy(cmdline, term_cmd_buf, term_cmd_buf_index);      memcpy(cmdline, term_cmd_buf, term_cmd_buf_index);
     cmdline[term_cmd_buf_index] = '\0';      cmdline[term_cmd_buf_index] = '\0';
     readline_find_completion(cmdline);      readline_find_completion(cmdline);
Line 484  const char *readline_get_history(unsigne Line 482  const char *readline_get_history(unsigne
         return NULL;          return NULL;
     return term_history[index];      return term_history[index];
 }  }
   
   

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


unix.superglobalmegacorp.com