mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 02:09:41 +00:00
Replace a handrolled memcpy with an actual call to memcpy
This commit is contained in:
parent
2c3c603be2
commit
4dca2c0466
1 changed files with 2 additions and 2 deletions
|
@ -225,8 +225,8 @@ void Utf8Encoder::copyFromArray(unsigned char ch, char* &out) const
|
|||
|
||||
const signed char *in = translationArray + ch*6;
|
||||
int len = *(in++);
|
||||
for (int i=0; i<len; i++)
|
||||
*(out++) = *(in++);
|
||||
memcpy(out, in, len);
|
||||
out += len;
|
||||
}
|
||||
|
||||
size_t Utf8Encoder::getLength2(const char* input, bool &ascii) const
|
||||
|
|
Loading…
Reference in a new issue