mirror of https://github.com/axmolengine/axmol.git
Fixing variable name lenght -> length.
This commit is contained in:
parent
92584bbc7f
commit
d3ca364259
|
@ -75,12 +75,12 @@ void Font::setCurrentGlyphCollection(GlyphCollection glyphs, const char *customG
|
||||||
default:
|
default:
|
||||||
if (customGlyphs)
|
if (customGlyphs)
|
||||||
{
|
{
|
||||||
size_t lenght = strlen(customGlyphs);
|
size_t length = strlen(customGlyphs);
|
||||||
_customGlyphs = new char [lenght + 2];
|
_customGlyphs = new char [length + 2];
|
||||||
memcpy(_customGlyphs, customGlyphs, lenght);
|
memcpy(_customGlyphs, customGlyphs, length);
|
||||||
|
|
||||||
_customGlyphs[lenght] = 0;
|
_customGlyphs[length] = 0;
|
||||||
_customGlyphs[lenght+1] = 0;
|
_customGlyphs[length+1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue