summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/certificate_chain.cc2
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;