X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/b1eac25ac75949707e082afcb8e0d702e536cef1..a2244dd929b26cf2edac3cbfd5ed22678eb87051:/utils/faimtest/commands.c diff --git a/utils/faimtest/commands.c b/utils/faimtest/commands.c index f27a3df..f306d73 100644 --- a/utils/faimtest/commands.c +++ b/utils/faimtest/commands.c @@ -219,7 +219,7 @@ static int cmd_connlist(char *arg) static int cmd_goodday(char *arg) { if (arg && strlen(arg) && (strlen(arg) < MAXSNLEN)) - aim_send_im(&aimsess, aim_getconn_type(&aimsess, AIM_CONN_TYPE_BOS), arg, AIM_IMFLAGS_ACK, "Good day to you too."); + aim_send_im(&aimsess, aim_getconn_type(&aimsess, AIM_CONN_TYPE_BOS), arg, AIM_IMFLAGS_ACK, "Good day to you too.", strlen("Good day to you too.")); else printf("no one to say hello to!\n"); @@ -266,7 +266,7 @@ static int cmd_sendmsg(char *arg) newbuf[z] = (z % 10)+0x30; newbuf[len] = '\0'; - aim_send_im(&aimsess, aim_getconn_type(&aimsess, AIM_CONN_TYPE_BOS), sn, AIM_IMFLAGS_ACK, newbuf); + aim_send_im(&aimsess, aim_getconn_type(&aimsess, AIM_CONN_TYPE_BOS), sn, AIM_IMFLAGS_ACK, newbuf, strlen(newbuf)); free(newbuf);