pspp-cvs
[Top][All Lists]
Advanced

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

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


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

Index: pspp/src/count.c
diff -u pspp/src/count.c:1.16 pspp/src/count.c:1.17
--- pspp/src/count.c:1.16       Fri Apr 29 01:02:13 2005
+++ pspp/src/count.c    Mon May  2 06:21:20 2005
@@ -108,7 +108,7 @@
     struct cnt_var_info *next;
 
     struct variable *d;                /* Destination variable. */
-    char n[SHORT_NAME_LEN + 1];        /* Name of dest var. */
+    char n[LONG_NAME_LEN + 1]; /* Name of dest var. */
 
     struct counting *c;                /* The counting specifications. */
   };
@@ -145,7 +145,7 @@
       cnt->d = NULL;
       cnt->c = NULL;
 
-      /* Get destination struct variable, or at least its name. */
+      /* Get destination variable, or at least its name. */
       if (!lex_force_id ())
        goto fail;
       cnt->d = dict_lookup_var (default_dict, tokid);
@@ -158,7 +158,7 @@
            }
        }
       else
-       strcpy (cnt->n, tokid);
+       st_trim_copy (cnt->n, tokid, sizeof cnt->n);
 
       lex_get ();
       if (!lex_force_match ('='))




reply via email to

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