[vlc-devel] commit: taglib: change just a bit the code. ( Rémi Duraffort )

Sébastien Escudier sebastien-devel at celeos.eu
Tue Jan 20 08:32:23 CET 2009


Quoting git version control <git at videolan.org>:

> vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jan 19
> 21:27:31 2009 +0100| [a02b83a7477ed76d26451b14bc4ecc50ea9e21b0] | committer:
> Rémi Duraffort

> -            while( j < max_size )
> -            {
> -                psz_ufid[j] = p_ufid->identifier()[j];
> -                j++;
> -            }
> -            psz_ufid[j] = '\0';
> +            int max_size = __MIN( p_ufid->identifier().size(), 63);
> +            strncmp( psz_ufid, p_ufid->identifier().data(), max_size );
> +            psz_ufid[max_size] = '\0';

I think you meant strn*cpy*



More information about the vlc-devel mailing list