CentOS: Another fix for old compiler version
authorMarkus Goetz <markus@woboq.com>
Tue, 7 Feb 2017 17:32:34 +0000 (18:32 +0100)
committerMarkus Goetz <markus@woboq.com>
Tue, 7 Feb 2017 17:32:34 +0000 (18:32 +0100)
src/libsync/discoveryphase.cpp

index faa7c0b0703b4653296c9ade0d8cfeb258119226..dd1e234b634fb7dad5b487bb018b60b903c4f8ba 100644 (file)
@@ -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');
         }