[Libreoffice-commits] core.git: onlineupdate/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Jul 31 21:40:41 UTC 2017


 onlineupdate/source/update/updater/updater.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2539702ff5e7bf6bc5dbdb3f8301196487b9266b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Jun 18 12:45:38 2017 +0200

    updater: fix windows build, string issues
    
    Change-Id: I79ff08534dc522ede50cd0c5771576d825977b7c
    Reviewed-on: https://gerrit.libreoffice.org/40606
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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]),


More information about the Libreoffice-commits mailing list