remove source warnings

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6092 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
engineer_apple 2020-02-22 22:09:48 +00:00
parent 6f8b0cef96
commit a790b163ee

@ -185,7 +185,8 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
if (file) if (file)
{ {
char buffer[1024]; char buffer[1024];
(void)fread(buffer, 1, 1024, file); size_t r = fread(buffer, 1, 1023, file);
buffer[r] = 0;
buffer[1023]=0; buffer[1023]=0;
core::stringc str(buffer); core::stringc str(buffer);
s32 pos = str.find("cpu MHz"); s32 pos = str.find("cpu MHz");