diff options
Diffstat (limited to 'protocols/Sametime')
-rw-r--r-- | protocols/Sametime/src/glib/giowin32.c | 4 | ||||
-rw-r--r-- | protocols/Sametime/src/glib/gmain.c | 2 |
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. |