/[qemu]/trunk/monitor.c
ViewVC logotype

Diff of /trunk/monitor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5965 by aliguori, Thu Dec 4 20:33:06 2008 UTC revision 5966 by aliguori, Wed Dec 10 15:12:57 2008 UTC
# Line 434  static void do_change_vnc(const char *ta Line 434  static void do_change_vnc(const char *ta
434      if (strcmp(target, "passwd") == 0 ||      if (strcmp(target, "passwd") == 0 ||
435          strcmp(target, "password") == 0) {          strcmp(target, "password") == 0) {
436          char password[9];          char password[9];
437          monitor_readline("Password: ", 1, password, sizeof(password)-1);          monitor_readline("Password: ", 1, password, sizeof(password));
         password[sizeof(password)-1] = '\0';  
438          if (vnc_display_password(NULL, password) < 0)          if (vnc_display_password(NULL, password) < 0)
439              term_printf("could not set VNC server password\n");              term_printf("could not set VNC server password\n");
440      } else {      } else {

Legend:
Removed from v.5965  
changed lines
  Added in v.5966

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5