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:
parent
0b3d4bf55c
commit
f5fa98c725
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue