$NetBSD: patch-ai,v 1.2 2007/07/30 10:25:42 joerg Exp $ Fix for SA17008, from Gentoo. --- ../convert/eyuvtoppm.c.orig 1995-04-14 21:16:52.000000000 +0000 +++ ../convert/eyuvtoppm.c @@ -24,7 +24,6 @@ *==============*/ #include #include -#include typedef unsigned char uint8; @@ -99,13 +98,9 @@ void main(int argc, char **argv) fpointer = fopen(dest, "w"); if (fpointer == NULL) { fprintf(stderr, "Problems opening %s!\n", dest); - fprintf(stderr, "Trying /tmp/foobar instead\n"); - strcpy(dest, "/tmp/foobar"); - fpointer = fopen(dest, "w"); - if (fpointer == NULL) { - fprintf(stderr, "Nope, exiting.\n"); + perror(""); exit(1); - }} + } WritePPM(fpointer); fclose(fpointer);