X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fflexifile.c;h=60b43ba88658654aa127d2a2c12def8a91ea78c4;hb=0db7a98b55853dd99701c95dffb3ecb97cee5343;hp=5d06f87621376c615ce15c42f38fd2723eadb528;hpb=5f7f751a47c68946a0fcbc9898f43f5499c5c6c5;p=pspp diff --git a/src/ui/flexifile.c b/src/ui/flexifile.c index 5d06f87621..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,6 +21,7 @@ #include #include #include "flexifile.h" +#include #include #include #include @@ -330,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);