X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/038ec85e825fc940c1387f64a88ae73b75f6822b..88ea89339783ee587180b645981967f6cb8bcd20:/sshpubk.c 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 */