diff options
author | Thomas White <taw@physics.org> | 2012-06-21 12:20:24 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-06-21 12:20:24 +0200 |
commit | 8e6a4919ca0aee13ee98ffefc9054ec5f8661740 (patch) | |
tree | ad087c92d2043004109c77283b636d3096d51173 /libcrystfel/src/stream.c | |
parent | 0ce14ba49cd6150e09a9dd32ea3451e3e47f16bf (diff) |
Fix skip_some_files()
Without chomp(), the string comparison never works.
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 81f4d722..ce0ee33e 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -474,6 +474,7 @@ int skip_some_files(FILE *fh, int n) rval = fgets(line, 1023, fh); if ( rval == NULL ) continue; + chomp(line); if ( strcmp(line, CHUNK_END_MARKER) == 0 ) n_patterns++; } while ( rval != NULL ); |