diff options
author | Thomas White <taw@physics.org> | 2010-10-04 18:48:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | 60640f822ae0514bf2c950c6aca14f5d4b04df1f (patch) | |
tree | 1237ae9868293b603a7fc8ee6fef8a740edebf47 | |
parent | cb2383f9659a63ce951ee16ec00885840ef3e712 (diff) |
indexamajig: Newline belongs in output stream as well
-rw-r--r-- | src/indexamajig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 2bdeef53..cebdf9e3 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -676,7 +676,8 @@ int main(int argc, char *argv[]) for ( i=0; i<argc; i++ ) { fprintf(ofh, " %s", argv[i]); } - printf("\n"); + fprintf(ofh, "\n"); + fflush(ofh); /* Get first filename and use it to set up the indexing */ rval = fgets(prepare_line, 1023, fh); |