projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce29219
)
Fix strange Windows build error introduced in 6c37cc1979b2a01205a888c4c98f3334685ee8dd
author
Carl Hetherington
<cth@carlh.net>
Sun, 31 Jan 2021 22:50:17 +0000
(23:50 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 31 Jan 2021 22:50:17 +0000
(23:50 +0100)
src/certificate_chain.cc
patch
|
blob
|
history
diff --git
a/src/certificate_chain.cc
b/src/certificate_chain.cc
index fbea9ccdc1cb71e17eb5c0d79fbb1fb1ffc605b3..4f86ba0db6275a3db0e0b38b03c06dc0d0dde9fa 100644
(file)
--- 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;