diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-08-12 23:35:07 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-08-12 23:35:07 +0200 |
commit | 2f0b714de689814f38cb2f36b22a05ec2ad5b1d6 (patch) | |
tree | c3ae7265f99c986144f06d34d55f9205194ebd5f | |
parent | b3fd6c01eda647c70115befbb532cbb4aff9723f (diff) |
Fix a memory buglet
-rw-r--r-- | src/storycode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storycode.c b/src/storycode.c index 27dbc43..a96fd2d 100644 --- a/src/storycode.c +++ b/src/storycode.c @@ -329,7 +329,7 @@ SCBlockList *sc_find_blocks(const char *sc, const char *blockname) } while ( i<len ); - if ( (blockname == NULL) && (j != 0) ) { + if ( (blockname == NULL) && (j > 1) ) { tbuf[j] = '\0'; if ( sc_block_list_add(bl, start, NULL, NULL, tbuf) ) { |