Fixing variable name lenght -> length.

This commit is contained in:
Austin Kelleher 2014-12-20 07:34:44 -05:00
parent 92584bbc7f
commit d3ca364259
1 changed files with 5 additions and 5 deletions

View File

@ -75,12 +75,12 @@ void Font::setCurrentGlyphCollection(GlyphCollection glyphs, const char *customG
default:
if (customGlyphs)
{
size_t lenght = strlen(customGlyphs);
_customGlyphs = new char [lenght + 2];
memcpy(_customGlyphs, customGlyphs, lenght);
size_t length = strlen(customGlyphs);
_customGlyphs = new char [length + 2];
memcpy(_customGlyphs, customGlyphs, length);
_customGlyphs[lenght] = 0;
_customGlyphs[lenght+1] = 0;
_customGlyphs[length] = 0;
_customGlyphs[length+1] = 0;
}
break;