diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:50:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-31 23:50:17 +0100 |
| commit | a31aee3f2909992ac717ecc72441240e7d1a56f7 (patch) | |
| tree | 305cab5bb587bbf071ce7c9689b13330c87132cd /src | |
| parent | ce29219e473fba936fd11a73c9a24b62722c3114 (diff) | |
Fix strange Windows build error introduced in 6c37cc1979b2a01205a888c4c98f3334685ee8dd
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate_chain.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc index fbea9ccd..4f86ba0d 100644 --- a/src/certificate_chain.cc +++ b/src/certificate_chain.cc @@ -78,7 +78,7 @@ command (string cmd) is handled correctly. */ int const wn = MultiByteToWideChar (CP_UTF8, 0, cmd.c_str(), -1, 0, 0); - char buffer = new wchar_t[wn]; + auto buffer = new wchar_t[wn]; if (MultiByteToWideChar (CP_UTF8, 0, cmd.c_str(), -1, buffer, wn) == 0) { delete[] buffer; return; |
