# HG changeset patch # User Mark Doliner # Date 1043046010 0 # Node ID 2b8abf7f9cc13b26b9ba364bb9ead5667fa4d63d # Parent 367fc70fe4f7fe8d2321c822794af839cc020ba4 [gaim-migrate @ 4624] Aubin has the eyes of an Eagle, and the talons of the restaurant place that Lana Lang runs on Smallville. committer: Tailor Script diff -r 367fc70fe4f7 -r 2b8abf7f9cc1 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Mon Jan 20 06:28:08 2003 +0000 +++ b/src/protocols/oscar/oscar.c Mon Jan 20 07:00:10 2003 +0000 @@ -1941,6 +1941,7 @@ } else if (args->reqclass & AIM_CAPS_SENDFILE) { struct oscar_file_transfer *oft; struct oscar_data *od = gc->proto_data; + char *tmp; if (!args->cookie || !args->verifiedip || !args->port || !args->info.sendfile.filename || !args->info.sendfile.totsize || @@ -2013,11 +2014,12 @@ od->file_transfers = g_slist_append(od->file_transfers, oft); - if (*(strrchr(args->info.sendfile.filename, '\\') + 1) == '*' ) { - /* last char of the ft req is a star, they are sending us a - * directory -- remove the star and trailing slash so we dont save - * directories that look like 'dirname\*' -- arl */ - *strrchr(args->info.sendfile.filename, '\\') = '\0'; + /* last char of the ft req is a star, they are sending us a + * directory -- remove the star and trailing slash so we dont save + * directories that look like 'dirname\*' -- arl */ + tmp = strrchr(args->info.sendfile.filename, '\\'); + if (tmp && (tmp[1] == '*')) { + tmp[0] = '\0'; } oft->xfer = transfer_in_add(gc, userinfo->sn, diff -r 367fc70fe4f7 -r 2b8abf7f9cc1 src/protocols/oscar/ssi.c --- a/src/protocols/oscar/ssi.c Mon Jan 20 06:28:08 2003 +0000 +++ b/src/protocols/oscar/ssi.c Mon Jan 20 07:00:10 2003 +0000 @@ -1376,10 +1376,10 @@ aimbs_get16(bs); aim_bstream_advance(bs, aimbs_get16(bs)); - del = aim_ssi_itemlist_find(sess->ssi.local, gid, bid); - aim_ssi_itemlist_del(&sess->ssi.local, del); - del = aim_ssi_itemlist_find(sess->ssi.official, gid, bid); - aim_ssi_itemlist_del(&sess->ssi.official, del); + if ((del = aim_ssi_itemlist_find(sess->ssi.local, gid, bid))) + aim_ssi_itemlist_del(&sess->ssi.local, del); + if ((del = aim_ssi_itemlist_find(sess->ssi.official, gid, bid))) + aim_ssi_itemlist_del(&sess->ssi.official, del); if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) ret = userfunc(sess, rx);