Warning, /graphics/krita/3rdparty/ext_frameworks/0002-Ensure-langenv-string-is-null-terminated.patch is written in an unsupported language. File is not indexed.

0001 From 410e2c11ec505d1ca562a319ec971bc104c6c0e4 Mon Sep 17 00:00:00 2001
0002 From: Alvin Wong <alvin@alvinhc.com>
0003 Date: Sat, 30 Oct 2021 22:04:02 +0800
0004 Subject: [PATCH 2/3] Ensure `langenv` string is null-terminated
0005 
0006 See: https://bugs.kde.org/show_bug.cgi?id=444614
0007 ---
0008  src/i18n/kcatalog.cpp | 1 +
0009  1 file changed, 1 insertion(+)
0010 
0011 diff --git a/src/i18n/kcatalog.cpp b/src/i18n/kcatalog.cpp
0012 index 6bd728b..3bc605f 100644
0013 --- a/src/i18n/kcatalog.cpp
0014 +++ b/src/i18n/kcatalog.cpp
0015 @@ -166,6 +166,7 @@ KCatalog::KCatalog(const QByteArray &domain, const QString &language_)
0016              // This doesn't work on Windows though, so there we need putenv calls on every change
0017              s_langenv = new char[s_langenvMaxlen];
0018              copyToLangArr(qgetenv("LANGUAGE"));
0019 +            s_langenv[s_langenvMaxlen - 1] = '\0';
0020              putenv(s_langenv);
0021          }
0022      }
0023 -- 
0024 2.37.1.windows.1
0025