From 8e6a4919ca0aee13ee98ffefc9054ec5f8661740 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Jun 2012 12:20:24 +0200 Subject: Fix skip_some_files() Without chomp(), the string comparison never works. --- libcrystfel/src/stream.c | 1 + 1 file changed, 1 insertion(+) 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 ); -- cgit v1.2.3