From 6fb16d72ebcf587adcb352dc72eed596912f1519 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 7 May 2023 21:45:47 +0200 Subject: [PATCH] Avoid unqualified call to `std::strncpy()` --- id3/id3v2frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);