diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 |
commit | 5a17c9299e03bebf46169927abdeee34aaf8e854 (patch) | |
tree | cbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/NotesAndReminders | |
parent | ed64312924e77707e7e5b5965c301692519f293a (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')
-rw-r--r-- | plugins/NotesAndReminders/src/notes.cpp | 12 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 12 |
2 files changed, 12 insertions, 12 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 ""; diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp index 5b9fd20897..ae631dba26 100644 --- a/plugins/NotesAndReminders/src/reminders.cpp +++ b/plugins/NotesAndReminders/src/reminders.cpp @@ -238,7 +238,7 @@ void JustSaveReminders(void) for (TTE = RemindersList, I = 0; TTE; TTE = (TREEELEMENT*)TTE->next, I++)
{
pReminder = (REMINDERDATA*)TTE->ptrdata;
- if (pReminder->Reminder && strlen(pReminder->Reminder))
+ if (pReminder->Reminder && mir_strlen(pReminder->Reminder))
tmpReminder = pReminder->Reminder;
else
tmpReminder = NULL;
@@ -246,7 +246,7 @@ void JustSaveReminders(void) if (!tmpReminder)
tmpReminder = "";
- Value = (char*)malloc(strlen(tmpReminder) + 512);
+ Value = (char*)malloc(mir_strlen(tmpReminder) + 512);
if (!Value)
continue;
@@ -571,7 +571,7 @@ void GetTriggerTimeString(const ULARGE_INTEGER *When, char *s, UINT strSize, BOO if ( GetDateFormat(lc, DATE_LONGDATE, &tm, NULL, s, strSize)) {
// append time
- int n = (int)strlen(s);
+ int n = (int)mir_strlen(s);
s[n++] = ' ';
s[n] = 0;
@@ -2622,13 +2622,13 @@ void Send(char *user, char *host, char *Msg, char *server) sockaddr.sin_port = htons(port);
sockaddr.sin_family = AF_INET;
if(connect(S,(SOCKADDR*)&sockaddr,sizeof(sockaddr)) == SOCKET_ERROR) return;
- ch = (char*)malloc(strlen(user) + strlen(host) + 16);
+ ch = (char*)malloc(mir_strlen(user) + mir_strlen(host) + 16);
ch = (char*)realloc(ch,sprintf(ch,"rcpt to:%s@%s\r\n",user,host)); //!!!!!!!!!!
WS_Send(S,"mail from: \r\n",13);
- WS_Send(S,ch,(int)strlen(ch));
+ WS_Send(S,ch,(int)mir_strlen(ch));
WS_Send(S,"data\r\n",6);
WS_Send(S,"From:<REM>\r\n\r\n",14);
- WS_Send(S,Msg,(int)strlen(Msg));
+ WS_Send(S,Msg,(int)mir_strlen(Msg));
WS_Send(S,"\r\n.\r\n",5);
WS_Send(S,"quit\r\n",6);
SAFE_FREE((void**)&ch);
|