poppler/JBIG2Stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c399b2d512aa073b0d7cd8eb5413a4b43f0d6aef Author: Albert Astals Cid <[email protected]> Date: Sat Apr 11 00:26:23 2009 +0200 Revert part of last commit, i need more math classes :D diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc index 31c829a..938927e 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; } _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
