/[pspp]/pspp/src/pfm-read.c
ViewVC logotype

Diff of /pspp/src/pfm-read.c

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

revision 1.28 by blp, Tue Oct 25 04:28:17 2005 UTC revision 1.29 by blp, Sat Oct 29 05:50:06 2005 UTC
# Line 492  read_variables (struct pfm_reader *r, st Line 492  read_variables (struct pfm_reader *r, st
492    r->var_cnt = read_int (r);    r->var_cnt = read_int (r);
493    if (r->var_cnt <= 0 || r->var_cnt == NOT_INT)    if (r->var_cnt <= 0 || r->var_cnt == NOT_INT)
494      error (r, _("Invalid number of variables %d."), r->var_cnt);      error (r, _("Invalid number of variables %d."), r->var_cnt);
495    r->widths = pool_alloc (r->pool, sizeof *r->widths * r->var_cnt);    r->widths = pool_nalloc (r->pool, r->var_cnt, sizeof *r->widths);
496    
497    /* Purpose of this value is unknown.  It is typically 161. */    /* Purpose of this value is unknown.  It is typically 161. */
498    read_int (r);    read_int (r);
# Line 608  read_value_label (struct pfm_reader *r, Line 608  read_value_label (struct pfm_reader *r,
608    int i;    int i;
609    
610    nv = read_int (r);    nv = read_int (r);
611    v = pool_alloc (r->pool, sizeof *v * nv);    v = pool_nalloc (r->pool, nv, sizeof *v);
612    for (i = 0; i < nv; i++)    for (i = 0; i < nv; i++)
613      {      {
614        char name[256];        char name[256];

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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