mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] util: fix invalid pointer arithmatic
This commit is contained in:
@@ -80,7 +80,7 @@ bool util_fileGetContents(const char * filename, char ** buffer, size_t * length
|
|||||||
}
|
}
|
||||||
|
|
||||||
fclose(fh);
|
fclose(fh);
|
||||||
*buffer[fsize] = 0;
|
(*buffer)[fsize] = 0;
|
||||||
*length = fsize;
|
*length = fsize;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user