Commit 8a27e174 authored by hybrid's avatar hybrid

Fix typos in Linux code.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4453 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 923bd7cf
......@@ -23,6 +23,7 @@
#ifdef _IRR_COMPILE_WITH_OSX_DEVICE_
#include "MacOSX/OSXClipboard.h"
#endif
#include "fast_atof.h"
namespace irr
{
......@@ -166,7 +167,7 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
if (file)
{
char buffer[1024];
fread(buffer, 1024, file);
fread(buffer, 1, 1024, file);
buffer[1023]=0;
core::stringc str(buffer);
s32 pos = str.find("cpu MHz");
......@@ -175,7 +176,7 @@ bool COSOperator::getProcessorSpeedMHz(u32* MHz) const
pos = str.findNext(':', pos);
if (pos != -1)
{
*Mhz = core::fast_atof(str.c_str+pos+1);
*MHz = core::fast_atof(str.c_str()+pos+1);
}
}
fclose(file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment