aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/narrative.c
diff options
context:
space:
mode:
Diffstat (limited to 'libstorycode/narrative.c')
-rw-r--r--libstorycode/narrative.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstorycode/narrative.c b/libstorycode/narrative.c
index fe1cf0c..caf9bc9 100644
--- a/libstorycode/narrative.c
+++ b/libstorycode/narrative.c
@@ -191,7 +191,8 @@ void narrative_delete_block(Narrative *n, int i1, size_t o1, int i2, size_t o2)
merge = 0;
} else {
memmove(&n->items[i2].text[0],
- &n->items[i2].text[o2], o2);
+ &n->items[i2].text[o2],
+ strlen(&n->items[i2].text[o2])+1);
}
/* If the start and end points are in different paragraphs, and both