summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msglog.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 10:52:12 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 10:52:12 +0000
commit5a19f89d6c8eb148e6bb7b450f702b666f685ed1 (patch)
tree2214a02a6785d5f4716ee53d191674746b34790c /plugins/TabSRMM/src/msglog.cpp
parent518e10779e770eac62fcedc96e750e538fa395ba (diff)
MoveMemory -> memmove
git-svn-id: http://svn.miranda-ng.org/main/trunk@11365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msglog.cpp')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index ea502d8c7e..1e89d91879 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -347,14 +347,14 @@ static int AppendToBufferWithRTF(int mode, char **buffer, int *cbBufferEnd, int
memcpy(*buffer + i, begin ? "\\i1 " : "\\i0 ", 4);
continue;
case 'u':
- MoveMemory(*buffer + i + 2, *buffer + i + 1, *cbBufferEnd - i);
+ memmove(*buffer + i + 2, *buffer + i + 1, *cbBufferEnd - i);
memcpy(*buffer + i, begin ? "\\ul1 " : "\\ul0 ", 5);
*cbBufferEnd += 1;
continue;
case 's':
*cbBufferAlloced += 20;
*buffer = (char *)mir_realloc(*buffer, *cbBufferAlloced);
- MoveMemory(*buffer + i + 6, *buffer + i + 1, (*cbBufferEnd - i) + 1);
+ memmove(*buffer + i + 6, *buffer + i + 1, (*cbBufferEnd - i) + 1);
memcpy(*buffer + i, begin ? "\\strike1 " : "\\strike0 ", begin ? 9 : 9);
*cbBufferEnd += 5;
continue;
@@ -379,7 +379,7 @@ static int AppendToBufferWithRTF(int mode, char **buffer, int *cbBufferEnd, int
*cbBufferAlloced += 1024;
*buffer = (char *)mir_realloc(*buffer, *cbBufferAlloced);
}
- MoveMemory(*buffer + i + 6, *buffer + i + 2, *cbBufferEnd - i - 1);
+ memmove(*buffer + i + 6, *buffer + i + 2, *cbBufferEnd - i - 1);
memcpy(*buffer + i, "\\line ", 6);
*cbBufferEnd += 4;
}
@@ -388,7 +388,7 @@ static int AppendToBufferWithRTF(int mode, char **buffer, int *cbBufferEnd, int
*cbBufferAlloced += 1024;
*buffer = (char *)mir_realloc(*buffer, *cbBufferAlloced);
}
- MoveMemory(*buffer + i + 6, *buffer + i + 1, *cbBufferEnd - i);
+ memmove(*buffer + i + 6, *buffer + i + 1, *cbBufferEnd - i);
memcpy(*buffer + i, "\\line ", 6);
*cbBufferEnd += 5;
}
@@ -397,7 +397,7 @@ static int AppendToBufferWithRTF(int mode, char **buffer, int *cbBufferEnd, int
*cbBufferAlloced += 1024;
*buffer = (char *)mir_realloc(*buffer, *cbBufferAlloced);
}
- MoveMemory(*buffer + i + 5, *buffer + i + 1, *cbBufferEnd - i);
+ memmove(*buffer + i + 5, *buffer + i + 1, *cbBufferEnd - i);
memcpy(*buffer + i, "\\tab ", 5);
*cbBufferEnd += 4;
}
@@ -406,7 +406,7 @@ static int AppendToBufferWithRTF(int mode, char **buffer, int *cbBufferEnd, int
*cbBufferAlloced += 1024;
*buffer = (char *)mir_realloc(*buffer, *cbBufferAlloced);
}
- MoveMemory(*buffer + i + 1, *buffer + i, *cbBufferEnd - i + 1);
+ memmove(*buffer + i + 1, *buffer + i, *cbBufferEnd - i + 1);
(*buffer)[i] = '\\';
++*cbBufferEnd;
i++;
@@ -683,7 +683,7 @@ static char *Template_CreateRTFFromDbEvent(TWindowData *dat, MCONTACT hContact,
if (dat->hHistoryEvents) {
if (dat->curHistory == dat->maxHistory) {
- MoveMemory(dat->hHistoryEvents, &dat->hHistoryEvents[1], sizeof(HANDLE)* (dat->maxHistory - 1));
+ memmove(dat->hHistoryEvents, &dat->hHistoryEvents[1], sizeof(HANDLE)* (dat->maxHistory - 1));
dat->curHistory--;
}
dat->hHistoryEvents[dat->curHistory++] = hDbEvent;