summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-28 14:21:06 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-01-28 14:21:06 +0200
commit2b126859937b2b3d3939fb0666bc0dcf3fcec1e6 (patch)
tree00a04dc737174cea79817bf9a0b797cd28a7d5f5 /src/options.cpp
parent099daf99fd2dfc92bb10972192026445fc2b8b45 (diff)
merged with miranda_ng main repo
implemented #78 (except menu)
Diffstat (limited to 'src/options.cpp')
-rwxr-xr-xsrc/options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/options.cpp b/src/options.cpp
index d635302..ab54404 100755
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -381,8 +381,7 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP
char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", "");
std::string str = szKey;;
mir_free(szKey);
- for(std::string::size_type i = str.find("\n"); i != std::string::npos; i = str.find("\n", i+2))
- str.replace(i, 1, "\r\n");
+ boost::algorithm::replace_all(str, "\n", "\r\n");
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, str.size() +1);
if(!hMem)
{