IPv6 URL patch (against 1.2.10)

Daniel NAKATA <[email protected]> Thu, 30 Dec 2004 13:18:24 -0800
Newsgroups gmane.comp.multimedia.xmms.devel
Organization Ferite Ninjas
Message-ID <[email protected]>
I can't believe I forgot to attach the patch.

Sorry, had a short rest last night.

Regards (again),
--Daniel

_______________________________________________
xmms-devel mailing list
[email protected]
http://lists.xmms.org/mailman/listinfo/xmms-devel
Input_mpg123_http_c.patch (text/x-diff, 408 B)
121a122,124
> #ifdef USE_IPV6
> 	gchar *sc;
> #endif
129a133,138
> #ifdef USE_IPV6
> 	if( ptr[0] == '[' ) {
> 		/* strip this. */
> 		ptr++;
> 	}
> #endif
133c142
< 		p = strchr(ptr, ':');
---
> 		p = strrchr(ptr, ':');
152c161
< 	pt = strchr(ptr, ':');
---
> 	pt = strrchr(ptr, ':');
163a173,179
> #ifdef USE_IPV6
> 	sc = strrchr( h, ']' );
> 	if( sc ) {
> 		/* strip this. */
> 		*sc = '\0';
> 	}
> #endif