diff --git a/id3/id3v2frame.cpp b/id3/id3v2frame.cpp index 2846b15..346bf06 100644 --- a/id3/id3v2frame.cpp +++ b/id3/id3v2frame.cpp @@ -1172,7 +1172,7 @@ void Id3v2Frame::makeLegacyPicture( } else { imageFormat = "UND"; } - strncpy(++offset, imageFormat, 3); + std::strncpy(++offset, imageFormat, 3); // write picture type *(offset += 3) = static_cast(typeInfo);