patch-ssh-askpass-fullscreen_c 877 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-ssh-askpass-fullscreen_c,v 1.1.1.1 2009/04/17 14:57:59 landry Exp $
  2. --- ssh-askpass-fullscreen.c.orig Mon Jan 16 13:49:38 2006
  3. +++ ssh-askpass-fullscreen.c Mon Apr 13 21:25:43 2009
  4. @@ -229,8 +229,9 @@ enter_callback(GtkWidget *widget,
  5. if (result == 0) /* result is always == 0, what this check is for? */
  6. puts(passphrase);
  7. - memset((void*)passphrase, '\0', strlen(passphrase));
  8. + memset((void*)passphrase, '\b', strlen(passphrase));
  9. gtk_entry_set_text(GTK_ENTRY(entry), passphrase);
  10. + memset((void*)passphrase, '\0', strlen(passphrase));
  11. gtk_main_quit();
  12. }
  13. @@ -247,7 +248,7 @@ passphrase_dialog(char *message)
  14. GdkColor color;
  15. gchar *str;
  16. GdkGrabStatus status;
  17. - int grab_tries;
  18. + int grab_tries = 0;
  19. const char *failed;
  20. grab_server = (getenv("GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);