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/src/reminders.cpp | |
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/src/reminders.cpp')
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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);
|