/[pspp]/pspp/src/compute.c
ViewVC logotype

Diff of /pspp/src/compute.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by blp, Tue Mar 1 08:16:15 2005 UTC revision 1.17 by jmd, Wed Apr 13 10:09:59 2005 UTC
# Line 310  compute_trns_free (struct trns_header *c Line 310  compute_trns_free (struct trns_header *c
310  /* COMPUTE or IF target variable or vector element. */  /* COMPUTE or IF target variable or vector element. */
311  struct lvalue  struct lvalue
312    {    {
313      char var_name[9];            /* Destination variable name, or "". */      char var_name[LONG_NAME_LEN + 1];   /* Destination variable name, or "". */
314      const struct vector *vector; /* Destination vector, if any, or NULL. */      const struct vector *vector; /* Destination vector, if any, or NULL. */
315      struct expression *element;  /* Destination vector element, or NULL. */      struct expression *element;  /* Destination vector element, or NULL. */
316    };    };
# Line 353  lvalue_parse (void) Line 353  lvalue_parse (void)
353    else    else
354      {      {
355        /* Variable name. */        /* Variable name. */
356        strncpy (lvalue->var_name, tokid, 8);        strncpy (lvalue->var_name, tokid, LONG_NAME_LEN);
357        lvalue->var_name[8] = '\0';        lvalue->var_name[LONG_NAME_LEN] = '\0';
358        lex_get ();        lex_get ();
359      }      }
360    return lvalue;    return lvalue;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26