From 4f97bfb3c2f4b4bae40edbdfcdcfcdd8587c1c11 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 19 Feb 2018 00:42:36 +0100 Subject: fix updater on windows Change-Id: Ib6f2334a3f6f3f5c217a71e2967a69e354b0a473 Reviewed-on: https://gerrit.libreoffice.org/49956 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- desktop/source/app/updater.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') 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; } -- cgit