Skip to content

Commit

Permalink
agg_font_freetype.cpp: fix incorrect use of memcpy() (CID 1503528)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Apr 24, 2021
1 parent 94632e1 commit 70295d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderers/agg/src/agg_font_freetype.cpp
Expand Up @@ -624,10 +624,10 @@ namespace mapserver
{
delete [] m_face_names[0];
FT_Done_Face(m_faces[0]);
memcpy(m_faces,
memmove(m_faces,
m_faces + 1,
(m_max_faces - 1) * sizeof(FT_Face));
memcpy(m_face_names,
memmove(m_face_names,
m_face_names + 1,
(m_max_faces - 1) * sizeof(char*));
m_num_faces = m_max_faces - 1;
Expand Down

0 comments on commit 70295d6

Please sign in to comment.