Fix incorrect size in memmove call in FcObjectSetAdd that crashed
FcFontSetList calls
This commit is contained in:
parent
c0d42979ad
commit
5b1bfa5d82
|
@ -80,7 +80,8 @@ FcObjectSetAdd (FcObjectSet *os, const char *object)
|
|||
}
|
||||
if (c < 0)
|
||||
mid++;
|
||||
memmove (os->objects + mid + 1, os->objects + mid, os->nobject - mid);
|
||||
memmove (os->objects + mid + 1, os->objects + mid,
|
||||
(os->nobject - mid) * sizeof (const char *));
|
||||
os->objects[mid] = object;
|
||||
os->nobject++;
|
||||
return FcTrue;
|
||||
|
|
Loading…
Reference in New Issue