use agetline instead of agets
also use agetline where fgets with a static buffer was used previously. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
@@ -50,7 +50,7 @@ cryptcheck(char *sumfile, int argc, char *argv[],
|
||||
else if(!(cfp = fopen(sumfile, "r")))
|
||||
eprintf("fopen %s:", sumfile);
|
||||
|
||||
while(afgets(&line, &bufsiz, cfp)) {
|
||||
while(agetline(&line, &bufsiz, cfp) != -1) {
|
||||
if(!(file = strstr(line, " "))) {
|
||||
formatsucks++;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user