Removed my authorship lines.
[pspp-builds.git] / src / ui / flexifile.c
index 9ed760b254a7def3c016aa946380fa07e9413552..60b43ba88658654aa127d2a2c12def8a91ea78c4 100644 (file)
@@ -1,7 +1,6 @@
 /* PSPP - computes sample statistics.
 
    Copyright (C) 2006 Free Software Foundation, Inc.
-   Written by John Darrington <john@darrington.wattle.id.au>
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
 #include <xalloc.h>
 #include <assert.h>
 #include "flexifile.h"
+#include <string.h>
 #include <data/casefile.h>
 #include <data/casefile-private.h>
 #include <data/case.h>
+#include <libpspp/compiler.h>
 
 
 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);