shithub: libgraphics

Download patch

ref: 39e63bec577e4f5e105a7922a7f7d580cb3d76ae
parent: 3155c6737832c54310c70ecaaf8667d0362de5e8
author: rodri <rgl@antares-labs.eu>
date: Thu Sep 26 17:20:02 EDT 2024

marshal: fix the curline.file setting.

--- a/marshal.c
+++ b/marshal.c
@@ -290,7 +290,7 @@
 	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;