X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b1ad43d74907dcfa9a9a880f41e4c8f34d24d27a..1ea566c3e96413d7edb40c50b0f7c7f8a5536079:/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 */