diff options
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);
|