diff options
author | Mataes <mataes2007@gmail.com> | 2018-03-17 22:36:40 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2018-03-17 22:36:40 +0300 |
commit | 81781c336c74447c4d64b367b958b2c7835f7271 (patch) | |
tree | efd90830d6e430e456cc3fd954b85bf21ac2d1e5 /plugins/FTPFileYM/src/ftpfile.cpp | |
parent | 3ad5334f17119c9ae010d5059f5cfb1831c9ddbd (diff) |
FTPFile: more correct version
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 8d97382f11..ea90b234a8 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -108,10 +108,9 @@ void InitMenuItems() mi2.flags = CMIF_UNICODE | CMIF_SYSTEM;
mi2.pszService = MS_FTPFILE_CONTACTMENU;
+ CMStringA frmt;
for (int i = 0; i < ServerList::FTP_COUNT; i++) {
- CMStringA frmt;
- frmt.Format("Name%d", i);
- ptrA Name(db_get_sa(NULL, MODULE, frmt));
+ ptrA Name(db_get_sa(NULL, MODULE, frmt.Format("Name%d", i)));
if (Name)
mir_snwprintf(stzName, TranslateT("FTP Server %d"), i + 1);
|