[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/sfm-write.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/sfm-write.c |
Date: |
Wed, 26 Oct 2005 01:07:44 -0400 |
Index: pspp/src/sfm-write.c
diff -u pspp/src/sfm-write.c:1.21 pspp/src/sfm-write.c:1.22
--- pspp/src/sfm-write.c:1.21 Tue Oct 25 04:28:17 2005
+++ pspp/src/sfm-write.c Wed Oct 26 05:06:14 2005
@@ -173,7 +173,7 @@
w->x = w->y = NULL;
w->var_cnt = dict_get_var_cnt (d);
- w->vars = xmalloc (sizeof *w->vars * w->var_cnt);
+ w->vars = xnmalloc (w->var_cnt, sizeof *w->vars);
for (i = 0; i < w->var_cnt; i++)
{
const struct variable *dv = dict_get_var (d, i);
@@ -242,7 +242,7 @@
if (w->compress)
{
- w->buf = xmalloc (sizeof *w->buf * 128);
+ w->buf = xnmalloc (128, sizeof *w->buf);
w->ptr = w->buf;
w->end = &w->buf[128];
w->x = (unsigned char *) w->ptr++;