summaryrefslogtreecommitdiff
path: root/multimedia/mpeg_encode/patches/patch-ai
blob: 779809512e6da06dcc44945fc81259172c19a74c (plain)
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
29
30
$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 <stdio.h>
 #include <stdlib.h>
-#include <malloc.h>
 
 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);