X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdata-out.c;h=38f50fafbd0ed6007058c7d722b67d95de6a0d1a;hb=ece16c8d0b27fc6c970f6d491b9a3e8a958fde82;hp=e7c709f678bfc1eaa49b331fabb6dfe2b278c525;hpb=6497384e745ce6e67776bf6c5ce8bf108bc57cbc;p=pspp-builds.git diff --git a/src/data/data-out.c b/src/data/data-out.c index e7c709f6..38f50faf 100644 --- a/src/data/data-out.c +++ b/src/data/data-out.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -32,7 +31,7 @@ #include "calendar.h" #include "format.h" #include "settings.h" -#include "variable.h" +#include "value.h" #include #include @@ -709,8 +708,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; }