forked from Mirrorlandia_minetest/irrlicht
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:
parent
6f8b0cef96
commit
a790b163ee
@ -185,7 +185,8 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
|
||||
if (file)
|
||||
{
|
||||
char buffer[1024];
|
||||
(void)fread(buffer, 1, 1024, file);
|
||||
size_t r = fread(buffer, 1, 1023, file);
|
||||
buffer[r] = 0;
|
||||
buffer[1023]=0;
|
||||
core::stringc str(buffer);
|
||||
s32 pos = str.find("cpu MHz");
|
||||
|
Loading…
Reference in New Issue
Block a user