[vlc-devel] commit: taglib: fix stupid typo ( thanks to Sébastien Escudier ) ( Rémi Duraffort )

git version control git at videolan.org
Tue Jan 20 08:51:24 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jan 20 08:50:54 2009 +0100| [d838e5ce020a467aa9804d56eb4c41ae42f61149] | committer: Rémi Duraffort 

taglib: fix stupid typo (thanks to Sébastien Escudier)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d838e5ce020a467aa9804d56eb4c41ae42f61149
---

 modules/meta_engine/taglib.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index bab3414..260a217 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -132,7 +132,7 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
              * terminated string */
             char psz_ufid[64];
             int max_size = __MIN( p_ufid->identifier().size(), 63);
-            strncmp( psz_ufid, p_ufid->identifier().data(), max_size );
+            strncpy( psz_ufid, p_ufid->identifier().data(), max_size );
             psz_ufid[max_size] = '\0';
             vlc_meta_SetTrackID( p_meta, psz_ufid );
         }




More information about the vlc-devel mailing list