diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-06-07 08:38:44 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-07 10:30:52 -0700 |
| commit | e7b40195ae0082d04ea8c0d1769d90ea700b76f2 (patch) | |
| tree | 9fe5edac29224af937c16aed1c477a313e4f4714 /compat/winansi.c | |
| parent | 9c076c32fbb15a0887a1ed4d2afa7e5a3fd74727 (diff) | |
| download | git-e7b40195ae0082d04ea8c0d1769d90ea700b76f2.tar.xz | |
compat/win32: fix const-correctness with string constants
Adjust various places in our Win32 compatibility layer where we are not
assigning string constants to `const char *` variables.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/winansi.c')
| -rw-r--r-- | compat/winansi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/winansi.c b/compat/winansi.c index f83610f684..575813bde8 100644 --- a/compat/winansi.c +++ b/compat/winansi.c @@ -139,7 +139,7 @@ static void write_console(unsigned char *str, size_t len) /* convert utf-8 to utf-16 */ int wlen = xutftowcsn(wbuf, (char*) str, ARRAY_SIZE(wbuf), len); if (wlen < 0) { - wchar_t *err = L"[invalid]"; + const wchar_t *err = L"[invalid]"; WriteConsoleW(console, err, wcslen(err), &dummy, NULL); return; } |
