Files
nixpkgs/pkgs/by-name/x2/x2t/fontengine-format-security.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
551 B
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
diff --git a/DesktopEditor/fontengine/MemoryStream.h b/DesktopEditor/fontengine/MemoryStream.h
index 4abebc1290..9f4a61ee5d 100644
--- a/DesktopEditor/fontengine/MemoryStream.h
+++ b/DesktopEditor/fontengine/MemoryStream.h
@@ -59,7 +59,7 @@ static void LOGGING(const std::string& strFile, const std::wstring& strMessage)
NSFile::CUtf8Converter::GetUtf8StringFromUnicode(strMessage.c_str(), (LONG)strMessage.length(), pData, lLen);
pData[lLen] = 0;
- fprintf(f, (char*)pData);
+ fprintf(f, "%s", (char*)pData);
fprintf(f, "\n");
fclose(f);