2010-03-21 05:13:53 -04:00
|
|
|
$OpenBSD: patch-src_file_c,v 1.2 2010/03/21 09:13:53 jasper Exp $
|
|
|
|
--- src/file.c.orig Tue Jun 23 22:57:24 2009
|
|
|
|
+++ src/file.c Fri Jan 29 19:07:07 2010
|
|
|
|
@@ -59,7 +59,7 @@ static void start_file(MainInfo *min, const gchar *cmd
|
2002-12-28 18:29:13 -05:00
|
|
|
bits |= (close(fd_out[STDIN_FILENO]) == 0) << 1;
|
|
|
|
}
|
|
|
|
if(bits == 3U)
|
|
|
|
- execlp(cmd, cmd, "-n", "-f", "-", NULL);
|
|
|
|
+ execlp(cmd, cmd, "-n", "-f", "-", (void *)NULL);
|
|
|
|
fprintf(stderr, "FILE: execlp() of '%s' failed (code %d)\n", cmd, errno);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|