[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/groff-font.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/groff-font.c |
Date: |
Wed, 26 Oct 2005 01:07:04 -0400 |
Index: pspp/src/groff-font.c
diff -u pspp/src/groff-font.c:1.14 pspp/src/groff-font.c:1.15
--- pspp/src/groff-font.c:1.14 Tue Oct 25 04:35:57 2005
+++ pspp/src/groff-font.c Wed Oct 26 05:06:14 2005
@@ -492,7 +492,7 @@
hash.size = 128;
hash.used = 0;
hash.next_index = 256;
- hash.tab = xmalloc (sizeof *hash.tab * hash.size);
+ hash.tab = xnmalloc (hash.size, sizeof *hash.tab);
hash.ar = pool_create ();
for (i = 0; i < hash.size; i++)
hash.tab[i].name = NULL;
@@ -514,7 +514,7 @@
int i, j;
hash.size *= 2;
- hash.tab = xmalloc (sizeof *hash.tab * hash.size);
+ hash.tab = xnmalloc (hash.size, sizeof *hash.tab);
for (i = 0; i < hash.size; i++)
hash.tab[i].name = NULL;
for (i = 0; i < old_size; i++)
@@ -819,8 +819,8 @@
if (dev->n_sizes + 2 >= m_sizes)
{
m_sizes += 1;
- dev->sizes = xrealloc (dev->sizes,
- m_sizes * sizeof *dev->sizes);
+ dev->sizes = xnrealloc (dev->sizes,
+ m_sizes, sizeof *dev->sizes);
}
dev->sizes[dev->n_sizes++][0] = lower;
dev->sizes[dev->n_sizes][1] = upper;