Fix sense of test in previous checkin :)
[u/mdw/putty] / sshpubk.c
index 166afbc..868fb15 100644 (file)
--- a/sshpubk.c
+++ b/sshpubk.c
@@ -514,7 +514,7 @@ static char *read_body(FILE * fp)
            sfree(text);
            return NULL;
        }
-       if (len + 1 > size) {
+       if (len + 1 >= size) {
            size += 128;
            text = sresize(text, size, char);
        }
@@ -906,7 +906,7 @@ char *ssh2_userkey_loadpub(const Filename *filename, char **algorithm,
     error = "file format error";
     if ((b = read_body(fp)) == NULL)
        goto error;
-    /* Select key algorithm structure. Currently only ssh-rsa. */
+    /* Select key algorithm structure. */
     alg = find_pubkey_alg(b);
     if (!alg) {
        sfree(b);