diff options
author | Thomas White <taw@physics.org> | 2020-08-19 12:34:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-19 12:34:32 +0200 |
commit | c2717ebfa586f99e8f6668d2e78a41735c3e8ede (patch) | |
tree | 066a83354b6a7d3466504e653f6e63e39fa85cd3 /src | |
parent | f44e75e04cf0eaca870e29c9a3e66e2b410b897b (diff) |
ambigator: Open input stream in the right mode
This fixes a (potentially data-deleting!) bug introduced by 9eec5930b.
Diffstat (limited to 'src')
-rw-r--r-- | src/ambigator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ambigator.c b/src/ambigator.c index c14b1051..96338a49 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -1244,7 +1244,7 @@ int main(int argc, char *argv[]) } infile = argv[optind++]; - st = stream_open_for_write(infile); + st = stream_open_for_read(infile); if ( st == NULL ) { ERROR("Failed to open input stream '%s'\n", infile); return 1; |