X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-list.c;h=3d730939b3e4a854af4da91bda81639685af530c;hb=1339492699ce7e12c9bf9fa17f9d60a66024cbd1;hp=24fa0dbcee0b51594bf9c05140c88e4d075c84b4;hpb=2990bac9e19a4a92606c830ab39ef3eb1e555481;p=pspp-builds.git diff --git a/src/data-list.c b/src/data-list.c index 24fa0dbc..3d730939 100644 --- a/src/data-list.c +++ b/src/data-list.c @@ -65,7 +65,7 @@ struct dls_var_spec int fc, lc; /* Column numbers in record. */ /* Free format only. */ - char name[SHORT_NAME_LEN + 1]; /* Name of variable. */ + char name[LONG_NAME_LEN + 1]; /* Name of variable. */ }; /* Constants for DATA LIST type. */ @@ -383,7 +383,7 @@ parse_fixed (struct data_list_pgm *dls) else { msg (SE, _("SPSS-like or FORTRAN-like format " - "specification expected after variable names.")); + "specification expected after variable names.")); goto fail; } @@ -889,7 +889,7 @@ parse_free (struct dls_var_spec **first, struct dls_var_spec **last) spec->input = input; spec->v = v; spec->fv = v->fv; - strcpy (spec->name, v->name); + st_trim_copy (spec->name, v->name, sizeof spec->name); append_var_spec (first, last, spec); } for (i = 0; i < name_cnt; i++)