[vlc-devel] [PATCH 4/9] raop: Implement options for password

jpd at videolan.org jpd at videolan.org
Fri Jul 24 11:41:36 CEST 2009

On Fri, Jul 24, 2009 at 11:24:59AM +0200, Michael Hanselmann wrote:
> So, the strsep(3) call in my patch just replaces the first occurence
> of "\r" or "\n" after the password.

Right. But you would only need "\n" if the file is opened in "text"
mode. And in that case, strlen()-1 would do equally well to find the
newline if it's there.

And strsep() appears to be not portable.

More information about the vlc-devel mailing list