summaryrefslogtreecommitdiff
path: root/protocols/Sametime/src
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 11:59:42 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 11:59:42 +0000
commite3c1a6d3c8ca609923a87635d208472db2e384e6 (patch)
tree14cd1a354929e175f43fbd200fdd283a28e481e6 /protocols/Sametime/src
parentb0dd8ba58e708865ef6e3ed6e596699fc64f4c2d (diff)
memmove -> memcpy in some cases, review req
git-svn-id: http://svn.miranda-ng.org/main/trunk@11367 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r--protocols/Sametime/src/glib/giowin32.c4
-rw-r--r--protocols/Sametime/src/glib/gmain.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Sametime/src/glib/giowin32.c b/protocols/Sametime/src/glib/giowin32.c
index 6ac7f2eb16..3a0b92655e 100644
--- a/protocols/Sametime/src/glib/giowin32.c
+++ b/protocols/Sametime/src/glib/giowin32.c
@@ -1048,7 +1048,7 @@ g_io_win32_msg_read (GIOChannel *channel,
if (!PeekMessage (&msg, win32_channel->hwnd, 0, 0, PM_REMOVE))
return G_IO_STATUS_AGAIN;
- memmove (buf, &msg, sizeof (MSG));
+ memcpy(buf, &msg, sizeof (MSG));
*bytes_read = sizeof (MSG);
return G_IO_STATUS_NORMAL;
@@ -1072,7 +1072,7 @@ g_io_win32_msg_write (GIOChannel *channel,
}
/* In case of alignment problems */
- memmove (&msg, buf, sizeof (MSG));
+ memcpy(&msg, buf, sizeof (MSG));
if (!PostMessage (win32_channel->hwnd, msg.message, msg.wParam, msg.lParam))
{
gchar *emsg = g_win32_error_message (GetLastError ());
diff --git a/protocols/Sametime/src/glib/gmain.c b/protocols/Sametime/src/glib/gmain.c
index 91e2a8e378..5bba96d60d 100644
--- a/protocols/Sametime/src/glib/gmain.c
+++ b/protocols/Sametime/src/glib/gmain.c
@@ -1799,7 +1799,7 @@ g_get_current_time (GTimeVal *result)
g_return_if_fail (result != NULL);
GetSystemTimeAsFileTime (&ft);
- memmove (&time64, &ft, sizeof (FILETIME));
+ memcpy(&time64, &ft, sizeof (FILETIME));
/* Convert from 100s of nanoseconds since 1601-01-01
* to Unix epoch. Yes, this is Y2038 unsafe.