scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit ac1e342e757a884e380fa4c60991f4270f47d7ea
parent c7fa199582f31a4dba0b45aea601a88349eee95e
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  7 Sep 2020 23:11:01 +0200

Handle output file "-" as stdout

Diffstat:
Mscribo.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scribo.c b/scribo.c @@ -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)