summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src/notes.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
commit5a17c9299e03bebf46169927abdeee34aaf8e854 (patch)
treecbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/NotesAndReminders/src/notes.cpp
parented64312924e77707e7e5b5965c301692519f293a (diff)
replace strlen to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders/src/notes.cpp')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 1f8ec9d354..a88a04bb8a 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -155,7 +155,7 @@ static void InitNoteTitle(STICKYNOTE *TSN)
// append time if requested
if (g_NoteTitleTime)
{
- int n = (int)strlen(TempStr);
+ int n = (int)mir_strlen(TempStr);
TempStr[n++] = ' ';
TempStr[n] = 0;
@@ -478,7 +478,7 @@ void LoadNotes(BOOL bIsStartup)
break;
case DATATAG_TITLE:
- if (strlen(TVal) > MAX_TITLE_LEN)
+ if (mir_strlen(TVal) > MAX_TITLE_LEN)
TVal[MAX_TITLE_LEN] = 0;
note.title = _strdup(TVal);
note.CustomTitle = TRUE;
@@ -612,7 +612,7 @@ void LoadNotes(BOOL bIsStartup)
if ( strchr(ID, '-') )
{
// validate format (otherwise create new)
- if (strlen(ID) < 19 || ID[2] != '-' || ID[5] != '-' || ID[10] != ' ' || ID[13] != ':' || ID[16] != ':')
+ if (mir_strlen(ID) < 19 || ID[2] != '-' || ID[5] != '-' || ID[10] != ' ' || ID[13] != ':' || ID[16] != ':')
{
ID = NULL;
}
@@ -1103,7 +1103,7 @@ static BOOL GetClipboardText_Title(char *pOut, int size)
while (*buffer && isspace(*buffer))
buffer++;
- size_t n = strlen(buffer);
+ size_t n = mir_strlen(buffer);
if (n >= size)
n = size-1;
memcpy(pOut, buffer, n);
@@ -1116,7 +1116,7 @@ static BOOL GetClipboardText_Title(char *pOut, int size)
if (*p == '\r' || *p == '\n')
{
*p = 0;
- n = strlen(pOut);
+ n = mir_strlen(pOut);
break;
}
else if (*p == '\t')
@@ -1736,7 +1736,7 @@ char* GetPreviewString(const char *lpsz)
while ( iswspace(*lpsz) )
lpsz++;
- l = (int)strlen(lpsz);
+ l = (int)mir_strlen(lpsz);
if (!l)
return "";