From 2bef3994a4fa6e481b6fa691d3386dcdac882001 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 21 Jan 2007 21:20:39 +0000 Subject: [PATCH] added stdout support (-o -) --- src/swfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swfc.c b/src/swfc.c index 745ec2e..b46d369 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -681,7 +681,7 @@ static void s_endSWF() warning("Empty bounding box for movie"); } - if(do_cgi) + if(do_cgi || !strcmp(filename, "-")) fi = fileno(stdout); else fi = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644); -- 1.7.10.4