added stdout support (-o -)
authorkramm <kramm>
Sun, 21 Jan 2007 21:20:39 +0000 (21:20 +0000)
committerkramm <kramm>
Sun, 21 Jan 2007 21:20:39 +0000 (21:20 +0000)
src/swfc.c

index 745ec2e..b46d369 100644 (file)
@@ -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);