[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/postscript.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/postscript.c |
Date: |
Wed, 26 Oct 2005 01:07:28 -0400 |
Index: pspp/src/postscript.c
diff -u pspp/src/postscript.c:1.22 pspp/src/postscript.c:1.23
--- pspp/src/postscript.c:1.22 Tue Oct 25 04:28:17 2005
+++ pspp/src/postscript.c Wed Oct 26 05:06:14 2005
@@ -320,7 +320,7 @@
assert (this->driver_open == 0);
msg (VM (1), _("PostScript driver initializing as `%s'..."), this->name);
- this->ext = x = xmalloc (sizeof (struct ps_driver_ext));
+ this->ext = x = xmalloc (sizeof *x);
this->res = PSUS;
this->horiz = this->vert = 1;
this->width = this->length = 0;
@@ -1902,7 +1902,7 @@
if ((*f)->ndep >= (*f)->mdep)
{
(*f)->mdep += 16;
- *f = xrealloc (*f, (sizeof **f + sizeof (int[2]) * ((*f)->mdep - 1)));
+ *f = xrealloc (*f, sizeof **f + sizeof (int[2]) * ((*f)->mdep - 1));
}
(*f)->dep[(*f)->ndep][0] = dep1;
(*f)->dep[(*f)->ndep][1] = dep2;
@@ -2735,7 +2735,7 @@
}
else
{
- buf = xrealloc (buf, sizeof *buf * buf_len * 2);
+ buf = xnrealloc (buf, buf_len * 2, sizeof *buf);
buf_loc = buf + buf_len;
buf_end = buf + buf_len * 2;
}