mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-10 07:49:57 -04:00
Avoid implicit reliance on memcpy due to large structure copy
This commit is contained in:
parent
2d362dcd01
commit
cbaf9a8386
@ -320,7 +320,7 @@ void* cc_memchr(const void* ptr, int ch, size_t num) {
|
||||
|
||||
for (; num > 0; num--, a++)
|
||||
{
|
||||
if (*a == ch) return a;
|
||||
if (*a == ch) return (void*)a;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1703,7 +1703,7 @@
|
||||
FALSE );
|
||||
|
||||
/* save a copy of current HintMap to use when drawing initial point */
|
||||
glyphpath->firstHintMap = glyphpath->hintMap; /* structure copy */
|
||||
ft_memcpy(&glyphpath->firstHintMap, &glyphpath->hintMap, sizeof(glyphpath->hintMap));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user