Skip to content

Commit d58da99

Browse files
author
Ralph Castain
committed
Shift to memcpy to avoid Solaris issues
1 parent 80e362d commit d58da99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/mca/pmix/pmix114/pmix/src/server/pmix_server_listener.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static pmix_status_t parse_connect_ack (char *msg, int len,
329329

330330
PMIX_STRNLEN(msglen, msg, len);
331331
if (msglen <= len) {
332-
*rank = *(int *)msg;
332+
memcpy(rank, msg, sizeof(int));
333333
msg += sizeof(int);
334334
len -= sizeof(int);
335335
} else {

0 commit comments

Comments
 (0)