summaryrefslogtreecommitdiff
path: root/Contrib/Makensisw/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Contrib/Makensisw/utils.cpp')
-rwxr-xr-xContrib/Makensisw/utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Contrib/Makensisw/utils.cpp b/Contrib/Makensisw/utils.cpp
index e4a1357..a350d24 100755
--- a/Contrib/Makensisw/utils.cpp
+++ b/Contrib/Makensisw/utils.cpp
@@ -595,6 +595,7 @@ int InitBranding() {
}
szBuf[dwRead] = 0, ppi = π
int len = lstrlenA(szBuf);
+ while(len && ((szBuf[len - 1] == '\n')|(szBuf[len - 1] == '\r'))) szBuf[--len] = '\0';
if (!len) retval = 0;
g_sdata.branding = (TCHAR*) MemAlloc((len+6)*sizeof(TCHAR)); // LEAKED
wsprintf(g_sdata.branding, _T("NSIS %hs"), szBuf);