From 5a17c9299e03bebf46169927abdeee34aaf8e854 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 10:06:32 +0000 Subject: replace strlen to mir_strlen git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/options.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/SecureIM/src/options.cpp') diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp index 8e98b92d8b..9db60844c2 100644 --- a/plugins/SecureIM/src/options.cpp +++ b/plugins/SecureIM/src/options.cpp @@ -1606,14 +1606,14 @@ LPSTR LoadKeys(LPCSTR file, BOOL priv) LPSTR keys = (LPSTR)mir_alloc(flen + 1); int i = 0; BOOL b = false; while (fgets(keys + i, 128, f)) { - if (!b && strncmp(keys + i, beg, strlen(beg)) == 0) + if (!b && strncmp(keys + i, beg, mir_strlen(beg)) == 0) b = true; - else if (b && strncmp(keys + i, end, strlen(end)) == 0) { - i += (int)strlen(keys + i); + else if (b && strncmp(keys + i, end, mir_strlen(end)) == 0) { + i += (int)mir_strlen(keys + i); b = false; } if (b) - i += (int)strlen(keys + i); + i += (int)mir_strlen(keys + i); } *(keys + i) = '\0'; fclose(f); @@ -1642,7 +1642,7 @@ BOOL SaveExportRSAKeyDlg(HWND hParent, LPSTR key, BOOL priv) FILE *f = _tfopen(szFile, _T("wb")); if (!f) return FALSE; - fwrite(key, strlen(key), 1, f); + fwrite(key, mir_strlen(key), 1, f); fclose(f); return TRUE; -- cgit v1.2.3