X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fcharts%2Fplot-hist.c;fp=src%2Foutput%2Fcharts%2Fplot-hist.c;h=b90d57ac3cb01df951fe52e04f1381871c0b8423;hb=9bc7fd4e5d03e4960960d9b16339a680d6f9ae06;hp=abe2908888cbb276784d402b2aa2d5e099466160;hpb=62120c1a218f5172d69357073297a1004ec9ee52;p=pspp diff --git a/src/output/charts/plot-hist.c b/src/output/charts/plot-hist.c index abe2908888..b90d57ac3c 100644 --- a/src/output/charts/plot-hist.c +++ b/src/output/charts/plot-hist.c @@ -112,12 +112,8 @@ hist_draw_bar (struct chart *ch, const struct histogram *hist, int bar) pl_restorestate_r (ch->lp); - { - char buf[5]; - snprintf (buf,5,"%g", (upper + lower) / 2.0); - draw_tick (ch, TICK_ABSCISSA, - x_pos + width / 2.0, buf); - } + draw_tick (ch, TICK_ABSCISSA, + x_pos + width / 2.0, "%g", (upper + lower) / 2.0); } }