mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
Silence valgrind memcheck warning
This commit is contained in:
parent
13e4148996
commit
edadba1ec7
@ -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…
x
Reference in New Issue
Block a user