1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-22 11:56:42 +00:00

possibly fix script EOF endings?

This commit is contained in:
suchmememanyskill 2021-08-01 19:19:52 +02:00
parent 0b3d4bf55c
commit f5fa98c725

View file

@ -194,7 +194,8 @@ void *sd_file_read(const char *path, u32 *fsize)
if (fsize)
*fsize = size;
void *buf = malloc(size);
char *buf = malloc(size + 1);
buf[size] = '\0';
if (f_read(&fp, buf, size, NULL) != FR_OK)
{