[seahorse] Fix SSH key generation



commit f3452d1fb77429eebf13e1cbc21eecf79b56d089
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Nov 22 22:44:47 2013 -0600

    Fix SSH key generation
    
    Here, i used to be a guint, but was recently changed into a gint to
    silence a compiler warning. This caused the for loop to terminate
    without ever iterating.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=715051

 ssh/seahorse-ssh-source.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ssh/seahorse-ssh-source.c b/ssh/seahorse-ssh-source.c
index 1f015f0..8cc233e 100644
--- a/ssh/seahorse-ssh-source.c
+++ b/ssh/seahorse-ssh-source.c
@@ -917,7 +917,7 @@ seahorse_ssh_source_file_for_algorithm (SeahorseSSHSource *ssrc, guint algo)
         break;
     }
     
-    for (i = 0; i < ~0; i++) {
+    for (i = 0; i < G_MAXINT; i++) {
         t = (i == 0) ? g_strdup (pref) : g_strdup_printf ("%s.%d", pref, i);
         filename = g_build_filename (ssrc->priv->ssh_homedir, t, NULL);
         g_free (t);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]