fix incorrect use of fprintf

Needed to compile with -Werror=format-security.
This commit is contained in:
Sean Bartell 2021-03-16 18:48:30 -05:00
parent af942b9332
commit aeffce68f1
1 changed files with 2 additions and 2 deletions

View File

@ -756,7 +756,7 @@ void newsrc_backup ()
}
while (fgets (b,MAX_BUF,new))
fprintf (old, b);
fputs (b, old);
fclose (old);
fclose (new);
@ -854,7 +854,7 @@ int newsrc_flush ()
seq[0] = 0;
newsrc_writeseq (n,seq,MAX_BUF);
sprintf (b, "%s%c %s\n", n->name, (n->attribs&naSUBSCRIBED)?':':'!', seq);
fprintf (new, b);
fputs (b, new);
n->attribs &= ~(naUPDATE);
n = nextgroup (n);
}