1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$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);
|