summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/serverlist.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-19 18:01:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-19 18:01:14 +0000
commitd6e05cc3bca53565d9ca65377ab8b0b6190774b3 (patch)
tree76040facd4d0b82162069a19cae8f7f024bf1f65 /plugins/FTPFileYM/src/serverlist.cpp
parent2ef414538760079fa2955fca1a2c03d610459fa8 (diff)
preparing to the transparent cyphering: end of MS_DB_CRYPT_ENCODESTRING/MS_DB_CRYPT_DECODESTRING
git-svn-id: http://svn.miranda-ng.org/main/trunk@6938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/serverlist.cpp')
-rw-r--r--plugins/FTPFileYM/src/serverlist.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/FTPFileYM/src/serverlist.cpp b/plugins/FTPFileYM/src/serverlist.cpp
index 79aea87d29..d199228675 100644
--- a/plugins/FTPFileYM/src/serverlist.cpp
+++ b/plugins/FTPFileYM/src/serverlist.cpp
@@ -46,7 +46,7 @@ void ServerList::saveToDb() const
char buff[256];
mir_snprintf(buff, sizeof(buff), "Password%d", opt.selected);
- DB::setCryptedString(0, MODULE, buff, ftp->szPass);
+ DB::setAStringF(0, MODULE, buff, opt.selected, ftp->szPass);
DB::setStringF(0, MODULE, "Name%d", opt.selected, ftp->stzName);
DB::setAStringF(0, MODULE, "Server%d", opt.selected, ftp->szServer);
@@ -64,14 +64,10 @@ void ServerList::saveToDb() const
ServerList::FTP::FTP(int index)
{
- char buff[256];
-
if (DB::getStringF(0, MODULE, "Name%d", index, this->stzName))
mir_sntprintf(this->stzName, SIZEOF(this->stzName), TranslateT("FTP Server %d"), index + 1);
- mir_snprintf(buff, sizeof(buff), "Password%d", index);
- DB::getCryptedString(0, MODULE, buff, this->szPass);
-
+ DB::getAStringF(0, MODULE, "Password%d", index, this->szPass);
DB::getAStringF(0, MODULE, "Server%d", index, this->szServer);
DB::getAStringF(0, MODULE, "User%d", index, this->szUser);
DB::getAStringF(0, MODULE, "Url%d", index, this->szUrl);