diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:04:59 +0200 |
commit | f570e2f2685aa43aa518c2f8578391c1847cddbe (patch) | |
tree | b9376b3a7e807c5e0c4cf3d5615c14034d9675d6 /library/ShadowCopy | |
parent | 3.2 (diff) | |
download | FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.gz FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.tar.bz2 FreeFileSync-f570e2f2685aa43aa518c2f8578391c1847cddbe.zip |
3.3
Diffstat (limited to 'library/ShadowCopy')
-rw-r--r-- | library/ShadowCopy/Shadow_2003.vcproj | 4 | ||||
-rw-r--r-- | library/ShadowCopy/Shadow_XP.vcproj | 4 | ||||
-rw-r--r-- | library/ShadowCopy/shadow.cpp | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/library/ShadowCopy/Shadow_2003.vcproj b/library/ShadowCopy/Shadow_2003.vcproj index 560deb8d..49730440 100644 --- a/library/ShadowCopy/Shadow_2003.vcproj +++ b/library/ShadowCopy/Shadow_2003.vcproj @@ -205,7 +205,7 @@ Optimization="2" EnableIntrinsicFunctions="true" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;SHADOWDLL_EXPORTS;USE_SHADOW_2003" - RuntimeLibrary="2" + RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" WarningLevel="3" @@ -287,7 +287,7 @@ Optimization="2" EnableIntrinsicFunctions="true" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;SHADOWDLL_EXPORTS;USE_SHADOW_2003" - RuntimeLibrary="2" + RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" WarningLevel="3" diff --git a/library/ShadowCopy/Shadow_XP.vcproj b/library/ShadowCopy/Shadow_XP.vcproj index 6c1cbaaa..74b231de 100644 --- a/library/ShadowCopy/Shadow_XP.vcproj +++ b/library/ShadowCopy/Shadow_XP.vcproj @@ -205,7 +205,7 @@ Optimization="2" EnableIntrinsicFunctions="true" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;SHADOWDLL_EXPORTS;USE_SHADOW_XP" - RuntimeLibrary="2" + RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" WarningLevel="3" @@ -287,7 +287,7 @@ Optimization="2" EnableIntrinsicFunctions="true" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;SHADOWDLL_EXPORTS;USE_SHADOW_XP" - RuntimeLibrary="2" + RuntimeLibrary="0" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" WarningLevel="3" diff --git a/library/ShadowCopy/shadow.cpp b/library/ShadowCopy/shadow.cpp index cbc4b085..0693815f 100644 --- a/library/ShadowCopy/shadow.cpp +++ b/library/ShadowCopy/shadow.cpp @@ -28,6 +28,7 @@ void writeString(const wchar_t* input, wchar_t* output, unsigned int outputBuffe { const size_t newSize = min(wcslen(input) + 1, outputBufferLen); //including null-termination memcpy(output, input, newSize * sizeof(wchar_t)); + output[newSize-1] = 0; //if output buffer is too small... } |