Apply patch by Jakub Hrozek to eliminate a compilation warning on Fedora

This commit is contained in:
Thomas Jensen 2015-01-10 22:35:08 +01:00
parent a2f9088d8d
commit 0a58a24763

View File

@ -1279,7 +1279,7 @@ static int list_styles()
fprintf (opt.outfile, "%s: ", shape_name[i]);
else {
space[strlen(shape_name[i])+2] = '\0';
fprintf (opt.outfile, space);
fprintf (opt.outfile, "%s", space);
space[strlen(shape_name[i])+2] = ' ';
}
if (j < d->shape[i].height) {
@ -1287,7 +1287,7 @@ static int list_styles()
}
else {
space[d->shape[i].width+2] = '\0';
fprintf (opt.outfile, space);
fprintf (opt.outfile, "%s", space);
space[d->shape[i].width+2] = ' ';
}
}