mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] util: fix invalid pointer arithmatic
This commit is contained in:
parent
cf51503a54
commit
a28deae569
@ -80,7 +80,7 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length
|
||||
}
|
||||
|
||||
fclose(fh);
|
||||
*buffer[fsize] = 0;
|
||||
(*buffer)[fsize] = 0;
|
||||
*length = fsize;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user