Update (currently un-used) save_digraphs() function so that it compiles

cleanly with -Werror=format-security.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@245 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-06-23 14:32:47 +00:00
parent c51810738e
commit dd9de3dff0

View File

@@ -407,23 +407,16 @@ void save_digraphs(FILE *fp)
{
if (digraph_changed)
{
int i;
int i = 0;
char *command = "\nDIGRAPH -ADD ";
fprintf(fp, "DIGRAPH -CLEAR");
fprintf(fp, command);
while(1)
{
fputs("DIGRAPH -CLEAR", fp);
for (i = 0; dig_table_lo[i]; i++) {
if (!(i % 5))
fputs("\nDIGRAPH -ADD ", fp);
fprintf(fp, "%d %d %d ", dig_table_lo[i],
dig_table_hi[i], dig_table_di[i]);
if (!dig_table_lo[++i])
break;
if (!(i % 5))
fprintf(fp, command);
}
fputc('\n', fp);
}
}