Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/si.c @ 27773:0f3a131d23da
- import nosuke's hash 244 patch and others to yahoo plugin
- do not perform any conversion in sanitize_* if _WIN32 defined
- suppress warning as much as possible
- fix indentation
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 29 Feb 2008 17:56:13 +0000 |
parents | e9cf897bd873 |
children | 1d012e75153f |
comparison
equal
deleted
inserted
replaced
27772:839cc551cad9 | 27773:0f3a131d23da |
---|---|
895 { | 895 { |
896 JabberSIXfer *jsx = xfer->data; | 896 JabberSIXfer *jsx = xfer->data; |
897 JabberIq *iq; | 897 JabberIq *iq; |
898 xmlnode *si, *file, *feature, *x, *field, *option, *value; | 898 xmlnode *si, *file, *feature, *x, *field, *option, *value; |
899 char buf[32]; | 899 char buf[32]; |
900 gchar *f1 = NULL, *f2 = NULL; | 900 gchar *f1 = NULL, *f2 = NULL; |
901 size_t dummy; | 901 gsize dummy; |
902 | 902 |
903 /* yaz */ | 903 /* yaz */ |
904 f1 = g_filename_display_basename(xfer->local_filename); | 904 f1 = g_filename_display_basename(xfer->local_filename); |
905 f2 = botch_utf(f1, strlen(f1), &dummy); | 905 f2 = botch_utf(f1, strlen(f1), &dummy); |
906 if(f2){ | 906 if(f2){ |
907 purple_xfer_set_filename(xfer, (char *)f2); | 907 purple_xfer_set_filename(xfer, (char *)f2); |
908 } | 908 } |
909 g_free(f1); f1 = NULL; | 909 g_free(f1); f1 = NULL; |
910 g_free(f2); f2 = NULL; | 910 g_free(f2); f2 = NULL; |
911 | 911 |
912 iq = jabber_iq_new(jsx->js, JABBER_IQ_SET); | 912 iq = jabber_iq_new(jsx->js, JABBER_IQ_SET); |
913 xmlnode_set_attrib(iq->node, "to", xfer->who); | 913 xmlnode_set_attrib(iq->node, "to", xfer->who); |
914 si = xmlnode_new_child(iq->node, "si"); | 914 si = xmlnode_new_child(iq->node, "si"); |
915 xmlnode_set_namespace(si, "http://jabber.org/protocol/si"); | 915 xmlnode_set_namespace(si, "http://jabber.org/protocol/si"); |