aboutsummaryrefslogtreecommitdiff
path: root/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-07 14:16:22 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:01 +0100
commitf86e00786e843982519885049f7bb7ef2436e7fd (patch)
tree9dcd8c9a9d9994d326ec51bcdbe2b609cdec0dfe /src/stream.c
parent40a3dbb314088415dffb766ddb3ca2878ced924e (diff)
Debug stream reader
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c3
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 {