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:
@@ -407,23 +407,16 @@ void save_digraphs(FILE *fp)
|
|||||||
{
|
{
|
||||||
if (digraph_changed)
|
if (digraph_changed)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
int i = 0;
|
fputs("DIGRAPH -CLEAR", fp);
|
||||||
char *command = "\nDIGRAPH -ADD ";
|
for (i = 0; dig_table_lo[i]; i++) {
|
||||||
|
if (!(i % 5))
|
||||||
fprintf(fp, "DIGRAPH -CLEAR");
|
fputs("\nDIGRAPH -ADD ", fp);
|
||||||
fprintf(fp, command);
|
|
||||||
while(1)
|
|
||||||
{
|
|
||||||
fprintf(fp, "%d %d %d ", dig_table_lo[i],
|
fprintf(fp, "%d %d %d ", dig_table_lo[i],
|
||||||
dig_table_hi[i], dig_table_di[i]);
|
dig_table_hi[i], dig_table_di[i]);
|
||||||
if (!dig_table_lo[++i])
|
|
||||||
break;
|
|
||||||
if (!(i % 5))
|
|
||||||
fprintf(fp, command);
|
|
||||||
}
|
}
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user