Clarify string length master
authorThomas White <taw@bitwiz.me.uk>
Fri, 11 Oct 2019 20:34:16 +0000 (22:34 +0200)
committerThomas White <taw@bitwiz.me.uk>
Fri, 11 Oct 2019 20:34:16 +0000 (22:34 +0200)
libstorycode/narrative.c

index 42523fa..67fe9e9 100644 (file)
@@ -380,7 +380,7 @@ static void delete_text(struct narrative_item *item, size_t o1, ssize_t o2)
 
                /* Last run */
                memmove(item->runs[r2].text, &item->runs[r2].text[roffs2],
-                       strlen(item->runs[r2].text) - roffs2+1);
+                       strlen(&item->runs[r2].text[roffs2])+1);
        }
 }