Merge commit 'origin/stable'
[pspp-builds.git] / src / output / charts / plot-hist.c
index 4b11618a2f1a409fa3d92a9071a456131ce8485a..fbf1925e635e165c3c096d119bace8123fa0d5bc 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright  (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -99,12 +99,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);
   }
 }