From 39e63bec577e4f5e105a7922a7f7d580cb3d76ae Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 26 Sep 2024 21:20:02 +0000 Subject: marshal: fix the curline.file setting. --- marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3