commit 7e58da1

Devine Lu Linvega  ·  2025-03-14 23:47:21 +0000 UTC
parent 44a05f8
Cap putdir with null-byte
1 files changed,  +1, -0
+1, -0
1@@ -117,6 +117,7 @@ put_fdir(Uint8 *dest, int len, const char *filepath, DIR *dir)
2 	}
3 	for(i = 0; i < len && dirbuf[i]; i++)
4 		dest[i] = dirbuf[i];
5+	dest[i] = 0;
6 	return i;
7 }
8