Kaydet (Commit) 2539702f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: fix windows build, string issues

Change-Id: I79ff08534dc522ede50cd0c5771576d825977b7c
Reviewed-on: https://gerrit.libreoffice.org/40606Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 31786ffa
......@@ -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]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment