# HG changeset patch # User Mark Doliner # Date 1166150527 0 # Node ID fcb3c61848e0ade16944a1e41abc01c33527b639 # Parent 49afc9ce69d2ac3b99392ff62a49191a49e9676a [gaim-migrate @ 18002] Two parameters being passed to strncpy() were backwards committer: Tailor Script diff -r 49afc9ce69d2 -r fcb3c61848e0 libgaim/protocols/oscar/libaim.c --- a/libgaim/protocols/oscar/libaim.c Fri Dec 15 02:40:27 2006 +0000 +++ b/libgaim/protocols/oscar/libaim.c Fri Dec 15 02:42:07 2006 +0000 @@ -31,6 +31,7 @@ OPT_PROTO_MAIL_CHECK | OPT_PROTO_IM_IMAGE, NULL, /* user_splits */ NULL, /* protocol_options */ + /* The mimimum icon size below is not needed in AIM 6.0 */ {"gif,jpeg,bmp,ico", 48, 48, 50, 50, GAIM_ICON_SCALE_SEND | GAIM_ICON_SCALE_DISPLAY}, /* icon_spec */ oscar_list_icon_aim, /* list_icon */ diff -r 49afc9ce69d2 -r fcb3c61848e0 libgaim/protocols/oscar/oscar.c --- a/libgaim/protocols/oscar/oscar.c Fri Dec 15 02:40:27 2006 +0000 +++ b/libgaim/protocols/oscar/oscar.c Fri Dec 15 02:42:07 2006 +0000 @@ -430,7 +430,7 @@ char *str, *salvage; str = g_malloc(datalen + 1); - strncpy(str, datalen, data); + strncpy(str, data, datalen); str[datalen] = '\0'; salvage = gaim_utf8_salvage(str); ret = g_strdup_printf("%s %s", salvage,