desktop/source/app/updater.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4f97bfb3c2f4b4bae40edbdfcdcfcdd8587c1c11
Author: Markus Mohrhard <[email protected]>
Date:   Mon Feb 19 00:42:36 2018 +0100

    fix updater on windows
    
    Change-Id: Ib6f2334a3f6f3f5c217a71e2967a69e354b0a473
    Reviewed-on: https://gerrit.libreoffice.org/49956
    Reviewed-by: Markus Mohrhard <[email protected]>
    Tested-by: Markus Mohrhard <[email protected]>

diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index e34cc6a7cce0..867b5f737329 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -152,7 +152,7 @@ void createStr(const OUString& rStr, CharT** pArgs, size_t 
i)
 #error "Need an implementation"
 #endif
     CharT* pStr = new CharT[aStr.getLength() + 1];
-    tstrncpy(pStr, aStr.getStr(), aStr.getLength());
+    tstrncpy(pStr, (CharT*)aStr.getStr(), aStr.getLength());
     pStr[aStr.getLength()] = '\0';
     pArgs[i] = pStr;
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to