Finish converting struct variable to an opaque type. In this
[pspp-builds.git] / src / data / data-out.c
index e7c709f678bfc1eaa49b331fabb6dfe2b278c525..544f2a54a3f86ad76c766a4c9afee5bcb8fa80e1 100644 (file)
@@ -32,7 +32,7 @@
 #include "calendar.h"
 #include "format.h"
 #include "settings.h"
-#include "variable.h"
+#include "value.h"
 
 #include <libpspp/assertion.h>
 #include <libpspp/float-format.h>
@@ -709,8 +709,8 @@ output_scientific (double number, const struct fmt_spec *format,
     p = mempset (p, ' ', ss_length (style->neg_suffix));
 
   assert (p == buf + format->w);
+  memcpy (output, buf, format->w);
 
-  buf_copy_str_lpad (output, format->w, buf);
   return true;
 }
 \f