tHandle output file "-" as stdout - scribo - Email-based phlog generator
 (HTM) git clone git://git.z3bra.org/scribo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ac1e342e757a884e380fa4c60991f4270f47d7ea
 (DIR) parent c7fa199582f31a4dba0b45aea601a88349eee95e
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Mon,  7 Sep 2020 23:11:01 +0200
       
       Handle output file "-" as stdout
       
       Diffstat:
         M scribo.c                            |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/scribo.c b/scribo.c
       t@@ -183,7 +183,7 @@ main(int argc, char *argv[])
                        outfile = fn;
                }
        
       -        if (outfile)
       +        if (outfile && strncmp(outfile, "-", PATH_MAX))
                        out = fopen(outfile, "w");
        
                if (writelog(in, out, &headers) < 0)