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

New commits:
commit 2539702ff5e7bf6bc5dbdb3f8301196487b9266b
Author: Markus Mohrhard <markus.mohrh...@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 <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@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]),
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to