mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
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)
|
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user