From 19dd656989a4152258eae1e9a7263a92a8553982 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Tue, 7 Feb 2017 18:32:34 +0100 Subject: [PATCH] CentOS: Another fix for old compiler version --- src/libsync/discoveryphase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index faa7c0b07..dd1e234b6 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -370,7 +370,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con /* All the entries in a external storage have 'M' in their permission. However, for all purposes in the desktop client, we only need to know about the mount points. So replace the 'M' by a 'm' for every sub entries in an external storage */ - std::replace(std::begin(file_stat->remotePerm), std::end(file_stat->remotePerm), + std::replace(file_stat->remotePerm, file_stat->remotePerm + strlen(file_stat->remotePerm), 'M', 'm'); }