OSDN Git Service
(root)
/
yamml
/
yamml-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc7676
)
cconv.cpp: 1 字分余分にメモリを確保していたのを修正
author
starg
<starg@users.osdn.me>
Sat, 13 Aug 2016 03:07:45 +0000
(12:07 +0900)
committer
starg
<starg@users.osdn.me>
Sat, 13 Aug 2016 03:07:45 +0000
(12:07 +0900)
src/driver/cconv.cpp
patch
|
blob
|
history
diff --git
a/src/driver/cconv.cpp
b/src/driver/cconv.cpp
index
8875d5e
..
3eb6d78
100644
(file)
--- a/
src/driver/cconv.cpp
+++ b/
src/driver/cconv.cpp
@@
-24,7
+24,7
@@
UTF82W::UTF82W(const std::string& str)
0
);
- m_WString.assign(requiredSize
+ 1
, L'\0');
+ m_WString.assign(requiredSize, L'\0');
::MultiByteToWideChar(
CP_UTF8,
@@
-69,7
+69,7
@@
W2UTF8::W2UTF8(const std::wstring& wstr)
nullptr
);
- m_String.assign(requiredSize
+ 1
, '\0');
+ m_String.assign(requiredSize, '\0');
::WideCharToMultiByte(
CP_UTF8,