[Gnome-print] Meta file errors
- From: Thomas Hudson <thudson gobe com>
- To: Gnome Print <gnome-print helixcode com>
- Subject: [Gnome-print] Meta file errors
- Date: Mon, 12 Feb 2001 14:28:43 -0800
There is a bug in writing the size to the header of
the meta file. You can find it by running:
$ testprint --dump my.meta
$ testprint --load my.meta
This is from the current CVS sources. Attached is
the patch to fix it.
Tomy
? metafix.diff
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-print/libgnomeprint/ChangeLog,v
retrieving revision 1.249
diff -r1.249 ChangeLog
0a1,5
> 2001-02-12 Thomas Hudson <thudson@gobe.com>
>
> * gnome-print-meta.c (gnome_print_meta_access_buffer): Fixed offset for
> writing size into buffer.
>
Index: gnome-print-meta.c
===================================================================
RCS file: /cvs/gnome/gnome-print/libgnomeprint/gnome-print-meta.c,v
retrieving revision 1.30
diff -r1.30 gnome-print-meta.c
812c812
< *((gint *)(p + FILEHEADER_SIZE)) = g_htonl (meta->current);
---
> *((gint *)(p + GNOME_METAFILE_SIGNATURE_SIZE)) = g_htonl (meta->current);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]