summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-18 12:45:38 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-07-31 23:39:44 +0200
commit2539702ff5e7bf6bc5dbdb3f8301196487b9266b (patch)
tree4c8b53e352655e79168c4432e04d57c301d77537 /onlineupdate
parent31786ffa1e30fbf05b48293e26c3ceabb58cf6ee (diff)
updater: fix windows build, string issues
Change-Id: I79ff08534dc522ede50cd0c5771576d825977b7c Reviewed-on: https://gerrit.libreoffice.org/40606 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/updater.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx
index eb6452a9f6a0..08aa201cb47e 100644
--- a/onlineupdate/source/update/updater/updater.cxx
+++ b/onlineupdate/source/update/updater/updater.cxx
@@ -2596,8 +2596,8 @@ GetUpdateFileNames(std::vector<tstring>& fileNames)
{
if (NS_tstrncmp(entry->d_name, NS_T("update"), 6) == 0)
{
- char *dot = strrchr(entry->d_name, '.');
- if (dot && !strcmp(dot, ".mar"))
+ NS_tchar *dot = NS_tstrrchr(entry->d_name, NS_T('.'));
+ if (dot && !NS_tstrcmp(dot, NS_T(".mar")))
{
NS_tchar updatePath[MAXPATHLEN];
NS_tsnprintf(updatePath, sizeof(updatePath)/sizeof(updatePath[0]),