[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libreoffice-commits
Subject:    [Libreoffice-commits] core.git: onlineupdate/source
From:       Markus Mohrhard <markus.mohrhard () googlemail ! com>
Date:       2017-07-31 21:40:41
Message-ID: 20170731214041.07E997610F () kemper ! freedesktop ! org
[Download RAW message or body]

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

New commits:
commit 2539702ff5e7bf6bc5dbdb3f8301196487b9266b
Author: Markus Mohrhard <markus.mohrhard@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@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard@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-commits@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic