summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 15e4760..4e7cacd 100644
--- a/marshal.c
+++ b/marshal.c
@@ -290,7 +290,7 @@ readmodel(int fd)
if((s = strrchr(curline.file, '/')) != nil){
*s = 0;
snprint(assets, sizeof assets, "%s", curline.file);
- memmove(curline.file, s+1, strlen(s));
+ memmove(curline.file, s+1, strlen(s+1) + 1);
}else{
assets[0] = '.';
assets[1] = 0;