summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/ftpfile.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
committerMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
commitf632783f27da5dd0ed3513bbee6182ea8af30afe (patch)
tree9cc74d2944501221126e628404532aed8c7b5cd9 /plugins/FTPFileYM/src/ftpfile.cpp
parent32ac77ea600fa6ae33fea77d2be8fdaec865da7b (diff)
FTPFile: replace mir_strcpy and mir_wstrcpy
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r--plugins/FTPFileYM/src/ftpfile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp
index 0d81de53f0..8d97382f11 100644
--- a/plugins/FTPFileYM/src/ftpfile.cpp
+++ b/plugins/FTPFileYM/src/ftpfile.cpp
@@ -109,7 +109,10 @@ void InitMenuItems()
mi2.pszService = MS_FTPFILE_CONTACTMENU;
for (int i = 0; i < ServerList::FTP_COUNT; i++) {
- if (DB::getStringF(0, MODULE, "Name%d", i, stzName))
+ CMStringA frmt;
+ frmt.Format("Name%d", i);
+ ptrA Name(db_get_sa(NULL, MODULE, frmt));
+ if (Name)
mir_snwprintf(stzName, TranslateT("FTP Server %d"), i + 1);
mi.root = (opt.bUseSubmenu) ? hMenu : nullptr;