abiword/abiword-2.2.5-wvread.patch

22 lines
905 B
Diff

diff -u abiword-2.2.5.orig/wv/libole2/ms-ole.c abiword-2.2.5/wv/libole2/ms-ole.c
--- abiword-2.2.5.orig/wv/libole2/ms-ole.c 2004-10-23 02:59:51.000000000 +0200
+++ abiword-2.2.5/wv/libole2/ms-ole.c 2005-03-14 23:36:08.130603903 +0100
@@ -482,7 +482,7 @@
offset = (b+1)*BB_BLOCK_SIZE;
f->syswrap->lseek (f->file_des, offset, SEEK_SET, f->syswrap->closure);
- f->syswrap->read (f->file_des, attr->data, BB_BLOCK_SIZE, f->syswrap->closure);
+ (f->syswrap->read) (f->file_des, attr->data, BB_BLOCK_SIZE, f->syswrap->closure);
attr->usage = 1;
attr->dirty = forwrite;
@@ -1791,7 +1791,7 @@
f->mem = g_new (guint8, BB_BLOCK_SIZE);
if (!f->mem ||
- f->syswrap->read (file, f->mem, BB_BLOCK_SIZE,
+ (f->syswrap->read) (file, f->mem, BB_BLOCK_SIZE,
f->syswrap->closure) == -1) {
g_warning ("Error reading header\n");
f->syswrap->close (file, f->syswrap->closure) ;