diff options
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c index 1e6ba93a..0892379e 100644 --- a/src/stream.c +++ b/src/stream.c @@ -138,11 +138,12 @@ int find_chunk(FILE *fh, UnitCell **cell, char **filename) } /* Read in "Rick Mode"? */ - if ( strncmp(line, "## h5FilePath:", 14) != 0 ) { + if ( strncmp(line, "## h5FilePath:", 14) == 0 ) { /* Filename is on next line */ rval = fgets(line, 1023, fh); if ( rval == NULL ) continue; + chomp(line); *filename = strdup(line); /* Look for the start of the orientation matrix */ do { |