aboutsummaryrefslogtreecommitdiff
path: root/src/storycode.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-08-12 23:35:07 +0200
committerThomas White <taw@bitwiz.org.uk>2013-08-12 23:35:07 +0200
commit2f0b714de689814f38cb2f36b22a05ec2ad5b1d6 (patch)
treec3ae7265f99c986144f06d34d55f9205194ebd5f /src/storycode.c
parentb3fd6c01eda647c70115befbb532cbb4aff9723f (diff)
Fix a memory buglet
Diffstat (limited to 'src/storycode.c')
-rw-r--r--src/storycode.c2
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) )
{