X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fhtml.c;h=caaaacb7318c4d42b85eed3109442184d285b72f;hb=59d14e5581317e3d1e37c8b92b535ba197984776;hp=043965eeece20d42d1c6489c0b54cf0790b29248;hpb=c246143823df29e9ce4c5115c647a47954dea883;p=pspp-builds.git diff --git a/src/output/html.c b/src/output/html.c index 043965ee..caaaacb7 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -375,7 +375,7 @@ html_initialise_chart (struct outp_driver *this, struct chart *ch) number_pos = strchr (x->chart_file_name, '#') - x->chart_file_name; ch->file_name = xasprintf ("%.*s%d%s", number_pos, x->chart_file_name, - x->chart_cnt, + (int) x->chart_cnt, x->chart_file_name + number_pos + 1); fp = fopen (ch->file_name, "wb"); if (fp == NULL)