pspp-cvs
[Top][All Lists]
Advanced

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

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


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/pfm-read.c
Date: Sat, 29 Oct 2005 01:50:08 -0400

Index: pspp/src/pfm-read.c
diff -u pspp/src/pfm-read.c:1.28 pspp/src/pfm-read.c:1.29
--- pspp/src/pfm-read.c:1.28    Tue Oct 25 04:28:17 2005
+++ pspp/src/pfm-read.c Sat Oct 29 05:50:06 2005
@@ -492,7 +492,7 @@
   r->var_cnt = read_int (r);
   if (r->var_cnt <= 0 || r->var_cnt == NOT_INT)
     error (r, _("Invalid number of variables %d."), r->var_cnt);
-  r->widths = pool_alloc (r->pool, sizeof *r->widths * r->var_cnt);
+  r->widths = pool_nalloc (r->pool, r->var_cnt, sizeof *r->widths);
 
   /* Purpose of this value is unknown.  It is typically 161. */
   read_int (r);
@@ -608,7 +608,7 @@
   int i;
 
   nv = read_int (r);
-  v = pool_alloc (r->pool, sizeof *v * nv);
+  v = pool_nalloc (r->pool, nv, sizeof *v);
   for (i = 0; i < nv; i++)
     {
       char name[256];




reply via email to

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