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