X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvector.c;h=9a0d749265529f92332a2877feb5a1ad1db9c225;hb=05e356b2a3087e819ef3b5388e29c822f41502e1;hp=2a712a6220c310e345433ac73e81ef8c8f7ef336;hpb=a7cc8b259f0fe963aa30d4e64f7d39551ded1454;p=pspp-builds.git diff --git a/src/vector.c b/src/vector.c index 2a712a62..9a0d7492 100644 --- a/src/vector.c +++ b/src/vector.c @@ -113,7 +113,7 @@ cmd_vector (void) 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 @@ cmd_vector (void) 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;