Avoid unqualified call to `std::strncpy()`

This commit is contained in:
Martchus 2023-05-07 21:45:47 +02:00
parent 111d6190cb
commit 6fb16d72eb
1 changed files with 1 additions and 1 deletions

View File

@ -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<char>(typeInfo);