mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
29 lines
719 B
Plaintext
29 lines
719 B
Plaintext
$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 <errno.h>
|
|
-#include <error.h>
|
|
#include <math.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
@@ -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);
|
|
|