[alt.graphics.pixutils] XV patches for GIF89a images

jvb7u@Virginia.EDU (Jon Brinkmann) (06/27/91)

In order to get xv, revision 11/29/90, patchlevel 3 to accept GIF89a files,
I made the following patches:

xv.c:

780c780,781
<   if (strncmp(magicno,"GIF87",5)==0) filetype = GIF;
---
>   if (strncmp(magicno,"GIF87a",6)==0 ||
> 	   strncmp(magicno,"GIF89a",6)==0) filetype = GIF;

xvgif.c:

91c91,92
< char *id = "GIF87a";
---
> char *id87 = "GIF87a";
> char *id89 = "GIF89a";
143c144
<   if (strncmp(ptr, id, 6)) 
---
>   if (strncmp(ptr, id87, 6) && strncmp(ptr, id89, 6)) 

Please note that xv won't process any of the GIF89a extensions (such as
aspect ratio).

If you need the source for this patchlevel of xv, check the contrib
directory of export.lcs.mit.edu.

Jon
--
Jon Brinkmann					Astronomy Department
Internet:	jvb7u@Virginia.EDU		University of Virginia
UUCP:		...!uunet!virginia!jvb7u	P.O. Box 3818
SPAN/HEPnet:	6654::jvb7u			Charlottesville, VA 22903-0818