diff --git a/src/export/ExportPCM.cpp b/src/export/ExportPCM.cpp index f15e9e183..e7a67b9fd 100644 --- a/src/export/ExportPCM.cpp +++ b/src/export/ExportPCM.cpp @@ -800,7 +800,9 @@ void ExportPCM::AddID3Chunk(wxString fName, Tags *tags, int sf_format) id3_tag_delete(tp); return; } - memset(buffer, 0, len); // Be clean for ending odd UTF16 content correctly. + // Zero all locations, for ending odd UTF16 content + // correctly, i.e., two '\0's at the end. + memset(buffer, 0, len); id3_tag_render(tp, buffer);