diff options
author | rodri <rgl@antares-labs.eu> | 2024-09-26 21:20:02 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-09-26 21:20:02 +0000 |
commit | 39e63bec577e4f5e105a7922a7f7d580cb3d76ae (patch) | |
tree | e22daf1438fc438486d3272d20264326dfb30290 | |
parent | 3155c6737832c54310c70ecaaf8667d0362de5e8 (diff) | |
download | libgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.tar.gz libgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.tar.bz2 libgraphics-39e63bec577e4f5e105a7922a7f7d580cb3d76ae.zip |
marshal: fix the curline.file setting.
-rw-r--r-- | marshal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |