X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshpubk.c;h=ac9e0fa7e11e20bbbe1293aa2fa45dc12279b070;hb=9bf30929fe75c3024e0a5f07766666627371637a;hp=e5157a3c8b70d73b47efbada709d74b1a8aea2ff;hpb=bc50fc71712b6d2668b6ee1b0ad25f79ecd64ce9;p=PuTTY_svn.git diff --git a/sshpubk.c b/sshpubk.c index e5157a3c..ac9e0fa7 100644 --- a/sshpubk.c +++ b/sshpubk.c @@ -463,7 +463,7 @@ static int read_header(FILE * fp, char *header) int len = 39; int c; - while (len > 0) { + while (1) { c = fgetc(fp); if (c == '\n' || c == '\r' || c == EOF) return 0; /* failure */