X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fflexifile.c;h=60b43ba88658654aa127d2a2c12def8a91ea78c4;hb=0db7a98b55853dd99701c95dffb3ecb97cee5343;hp=9ed760b254a7def3c016aa946380fa07e9413552;hpb=a37754c18dee3d5941e5fe041b2c1fa1a3370157;p=pspp diff --git a/src/ui/flexifile.c b/src/ui/flexifile.c index 9ed760b254..60b43ba886 100644 --- a/src/ui/flexifile.c +++ b/src/ui/flexifile.c @@ -1,7 +1,6 @@ /* PSPP - computes sample statistics. Copyright (C) 2006 Free Software Foundation, Inc. - Written by John Darrington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -22,9 +21,11 @@ #include #include #include "flexifile.h" +#include #include #include #include +#include struct class_flexifile @@ -329,7 +330,7 @@ impl_resize (struct flexifile *ff, int n_values, int posn) case_copy (&c, 0, &ff->cases[i], 0, posn); if ( n_values > 0 ) - memset (case_data_rw(&c, posn), ' ', n_values * MAX_SHORT_STRING) ; + memset (case_data_rw_idx(&c, posn), ' ', n_values * MAX_SHORT_STRING) ; case_copy (&c, posn + n_values, &ff->cases[i], posn, ff->value_cnt - posn);