scribo

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

commit c150b139555f493a41dd8cf9c102fa8fa7cef4e8
parent a100614d250ffdfd0c48a92ee2ca35ccb1f1b3dc
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  7 Sep 2020 18:39:17 +0200

Change directory after openning input file

Diffstat:
Mscribo.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scribo.c b/scribo.c @@ -139,12 +139,12 @@ main(int argc, char *argv[]) exit(1); } ARGEND; - if (chdir(basedir) < 0) - return -1; - if (infile) in = fopen(infile, "r"); + if (chdir(basedir) < 0) + return -1; + if (outfile) out = fopen(outfile, "w");