diff options
author | Albert Astals Cid <aacid@kde.org> | 2009-04-11 00:26:23 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-04-11 00:26:23 +0200 |
commit | c399b2d512aa073b0d7cd8eb5413a4b43f0d6aef (patch) | |
tree | ed93bcd59aad19a872230edcb65edb8f0205ea42 | |
parent | 7b2d314a61fd0e12f47c62996cb49ec0d1ba747a (diff) |
Revert part of last commit, i need more math classes :D
-rw-r--r-- | poppler/JBIG2Stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc index 31c829a0..938927e3 100644 --- a/poppler/JBIG2Stream.cc +++ b/poppler/JBIG2Stream.cc @@ -707,7 +707,7 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, int wA, int hA): return; } // need to allocate one extra guard byte for use in combine() - data = (Guchar *)gmallocn(h, line + 1); + data = (Guchar *)gmalloc(h * line + 1); data[h * line] = 0; } @@ -724,7 +724,7 @@ JBIG2Bitmap::JBIG2Bitmap(Guint segNumA, JBIG2Bitmap *bitmap): return; } // need to allocate one extra guard byte for use in combine() - data = (Guchar *)gmallocn(h, line + 1); + data = (Guchar *)gmalloc(h * line + 1); memcpy(data, bitmap->data, h * line); data[h * line] = 0; } |