pspp-cvs
[Top][All Lists]
Advanced

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

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


From: John Darrington
Subject: [Pspp-cvs] Changes to pspp/src/vector.c
Date: Wed, 13 Apr 2005 06:10:16 -0400

Index: pspp/src/vector.c
diff -u pspp/src/vector.c:1.6 pspp/src/vector.c:1.7
--- pspp/src/vector.c:1.6       Mon Nov 15 09:51:22 2004
+++ pspp/src/vector.c   Wed Apr 13 10:09:59 2005
@@ -113,7 +113,7 @@
          int ndig;
 
          /* Name of an individual variable to be created. */
-         char name[9];
+         char name[SHORT_NAME_LEN + 1];
 
           /* Vector variables. */
           struct variable **v;
@@ -131,13 +131,13 @@
          if (!lex_force_match (')'))
            goto fail;
 
-         /* First check that all the generated variable names are 8
+         /* First check that all the generated variable names are 
SHORT_NAME_LEN
             characters or shorter. */
          ndig = intlog10 (nv);
          for (cp = vecnames; *cp;)
            {
              int len = strlen (cp);
-             if (len + ndig > 8)
+             if (len + ndig > SHORT_NAME_LEN)
                {
                  msg (SE, _("%s%d is too long for a variable name."), cp, nv);
                  goto fail;




reply via email to

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