1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/net-p2p/lopster/files/patch-src-napster.c
Pav Lucistnik bd0d3ddbaa - Provide option to turn off zlib
- Fix welcome packet for older servers
- Fix problems with empty password

PR:		ports/83217
Submitted by:	Radim Kolar <hsn@netmag.cz>
Approved by:	maintainer timeout (18 days)
2005-07-31 09:10:14 +00:00

20 lines
544 B
C

--- src/napster.c.orig Sat Aug 28 23:27:09 2004
+++ src/napster.c Sun Jul 10 14:46:50 2005
@@ -717,11 +717,13 @@
global.linespeed,
email?email:"anon@anon");
#else
- size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d",
+ size = sprintf(text+4, "%s %s %d \"Lopster %s\" %d %s",
net->user.username,
- net->user.password,
+ strlen(net->user.password)?net->user.password:net->user.username,
port, VERSION,
- global.linespeed);
+ global.linespeed,
+ email?email:"anon@anon"
+ );
#endif
size = BSWAP16(size);