pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/data-list.c


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/data-list.c
Date: Mon, 02 May 2005 02:21:28 -0400

Index: pspp/src/data-list.c
diff -u pspp/src/data-list.c:1.31 pspp/src/data-list.c:1.32
--- pspp/src/data-list.c:1.31   Fri Apr 29 01:02:13 2005
+++ pspp/src/data-list.c        Mon May  2 06:21:20 2005
@@ -65,7 +65,7 @@
     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 @@
       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 @@
           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++)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]