fix incorrect use of fprintf
Needed to compile with -Werror=format-security.
This commit is contained in:
parent
af942b9332
commit
aeffce68f1
|
@ -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);
|
||||
}
|
||||
|
|
Reference in New Issue