[mw-devel] [Git][arthur/mw][master] Set the source of the message properly in ipc_send_to_username

Andrew Price welshbyte at sucs.org
Wed Dec 9 19:00:07 GMT 2015


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
1b29c470 by Andrew Price at 2015-12-09T18:57:47Z
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.

- - - - -


1 changed file:

- src/ipc.c


Changes:

=====================================
src/ipc.c
=====================================
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -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);



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/1b29c470a671b3e06724302ddac50d28c110f971
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20151209/33f89654/attachment.html>


More information about the mw-devel mailing list