# HG changeset patch # User Rob Flynn # Date 991420290 0 # Node ID 22a3b4b529713e4a7e12b9419809b70f2fa78971 # Parent e875b1cb2470ec1c9a047bdac80416f3a227cea8 [gaim-migrate @ 1945] Hooray. :-) committer: Tailor Script diff -r e875b1cb2470 -r 22a3b4b52971 ChangeLog --- a/ChangeLog Fri Jun 01 18:21:54 2001 +0000 +++ b/ChangeLog Fri Jun 01 18:31:30 2001 +0000 @@ -2,6 +2,8 @@ version 0.11.0-pre13: * Can view/set chat topic in Jabber (thanks faceprint) + * The napster plugin no longer segfaults on invalid names + and/or passwords. version 0.11.0-pre12 (05/29/2001): * Fixed a funny bug with auto responses when queued messages diff -r e875b1cb2470 -r 22a3b4b52971 plugins/napster.c --- a/plugins/napster.c Fri Jun 01 18:21:54 2001 +0000 +++ b/plugins/napster.c Fri Jun 01 18:31:30 2001 +0000 @@ -857,10 +857,21 @@ read(source, header, 4); len = header[0]; command = header[1]; - + read(source, buf, len); buf[len] = 0; + /* If we have some kind of error, get outta here */ + if (command == 0x00) + { + do_error_dialog(buf, "Gaim: Napster Error"); + gdk_input_remove(ndata->inpa); + ndata->inpa = 0; + close(source); + signoff(gc); + return; + } + if (command == 0x03) { printf("Registered with E-Mail address of: %s\n", buf); ndata->email = g_strdup(buf);