mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Silence valgrind memcheck warning
This commit is contained in:
parent
13e4148996
commit
edadba1ec7
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ int filestream_read_file(const char *path, void **buf, ssize_t *len)
|
|||
|
||||
/* Allow for easy reading of strings to be safe.
|
||||
* Will only work with sane character formatting (Unix). */
|
||||
((char*)content_buf)[content_buf_size] = '\0';
|
||||
((char*)content_buf)[ret] = '\0';
|
||||
|
||||
if (len)
|
||||
*len = ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue