Commit 1b29c470 authored by Andrew Price's avatar Andrew Price
Browse files

Set the source of the message properly in ipc_send_to_username

Using 0 made it look like all the messages were from the user at offset
0 with spy turned on.
parent 51816d36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ unsigned int ipc_send_to_username(const char * dest, enum ipc_types msgtype, con
	ipc_check();
	if(utf8_cleanup(buff)>=0) {
		ssize_t dgram_len = strlen(buff);
		ipc_message_t *msg = ipcmsg_create(msgtype, 0);
		ipc_message_t *msg = ipcmsg_create(msgtype, ipc_user->posn);
		ipcmsg_destination(msg, uposn);
		ipcmsg_append(msg, buff, dgram_len);
		ipcmsg_send(msg, ipcsock);