$NetBSD: patch-ad,v 1.1.1.1 2005/07/27 17:06:53 drochner Exp $ --- image.c.orig 1998-11-25 03:55:32.000000000 +0100 +++ image.c 2004-04-16 22:30:55.000000000 +0200 @@ -4,7 +4,6 @@ form on Microsoft and Be systems. */ #include -#include #include #include #include @@ -128,12 +127,12 @@ /* Write out the result. */ strcpy (outname, name); - strcat (outname, ".gif"); + strcat (outname, ".png"); outfile = fopen (outname, "w"); if (outfile == NULL) - error (EXIT_FAILURE, errno, "cannot open output file `%s'", outname); + exit (EXIT_FAILURE); - gdImageGif (im_out, outfile); + gdImagePng (im_out, outfile); fclose (outfile);