Index: chrome/app/breakpad_linux.cc |
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc |
index 60e4fda3b08540aef54fc1f2cfbeb148c7073df3..2b09eb6c14cb716febc7279f5fee8283bd897286 100644 |
--- a/chrome/app/breakpad_linux.cc |
+++ b/chrome/app/breakpad_linux.cc |
@@ -809,8 +809,7 @@ bool NonBrowserCrashHandler(const void* crash_context, |
hdr->cmsg_level = SOL_SOCKET; |
hdr->cmsg_type = SCM_RIGHTS; |
hdr->cmsg_len = kControlMsgLenSize; |
- ((int*) CMSG_DATA(hdr))[0] = fds[0]; |
- ((int*) CMSG_DATA(hdr))[1] = fds[1]; |
+ memcpy(CMSG_DATA(hdr), fds, sizeof(fds)); |
if (HANDLE_EINTR(sys_sendmsg(fd, &msg, 0)) < 0) { |
static const char errmsg[] = "Failed to tell parent about crash.\n"; |