11.26 - compilation issue - afs/sftp.cpp:1062:60: error: expected ')' before '}' token

Get help for specific problems
Posts: 58
Joined: 14 Aug 2022

daviank

Seems there is an issue while building from the sources of 11.26

BTW, any plan to sign your releases as described here ?
 afs/sftp.cpp:1062:60: error: expected ')' before '}' token
  1062 |         const std::string_view sftpItemName{(buf.data(), rc};
       |                                             ~              ^
       |                                                            )
Possible fix:
--- a/FreeFileSync/Source/afs/sftp.cpp
+++ b/FreeFileSync/Source/afs/sftp.cpp
@@ -1059,7 +1059,7 @@
         if (rc == 0) //no more items
             return output;
 
-        const std::string_view sftpItemName{(buf.data(), rc};
+        const std::string_view sftpItemName{buf.data(), rc};
 
                                             if (sftpItemName == "." || sftpItemName == "..") //check needed for SFTP, too!
                                             continue;
User avatar
Site Admin
Posts: 7506
Joined: 9 Dec 2007

Zenju

Fixed! Thanks for the report.