summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-26 21:20:02 +0000
committerrodri <rgl@antares-labs.eu>2024-09-26 21:20:02 +0000
commit39e63bec577e4f5e105a7922a7f7d580cb3d76ae (patch)
treee22daf1438fc438486d3272d20264326dfb30290
parent3155c6737832c54310c70ecaaf8667d0362de5e8 (diff)
downloadlibgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.tar.gz
libgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.tar.bz2
libgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.zip
marshal: fix the curline.file setting.
-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;