/* 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>
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);