Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordnobori <da.git@softether.co.jp>2014-03-21 09:07:45 +0400
committerdnobori <da.git@softether.co.jp>2014-03-21 09:07:45 +0400
commite61fca4d9da6c141e1b2f55bd8459e315ae311b6 (patch)
treed567c41791005d0d741b647ac64a3c2fbb0c3533 /src/Mayaqua
parentdc5d3ee2aeab6cb5c5a9dfa0036edfe4b1565cca (diff)
v4.06-9433-beta
Diffstat (limited to 'src/Mayaqua')
-rw-r--r--src/Mayaqua/Internat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mayaqua/Internat.c b/src/Mayaqua/Internat.c
index d3a9c60f..d4dd12b3 100644
--- a/src/Mayaqua/Internat.c
+++ b/src/Mayaqua/Internat.c
@@ -3412,7 +3412,7 @@ UINT UniStrCpy(wchar_t *dst, UINT size, wchar_t *src)
}
else
{
- len = size / 2 - 1;
+ len = size / sizeof(wchar_t) - 1;
Copy(dst, src, len * sizeof(wchar_t));
dst[len] = 0;
}