[MPlayer-cvslog] r35576 - trunk/gui/util/string.c

ib subversion at mplayerhq.hu
Mon Dec 3 12:51:00 CET 2012


Author: ib
Date: Mon Dec  3 12:50:59 2012
New Revision: 35576

Log:
Fix bug with DVD "no chapter" information.

The destination contains nothing we could append to.

Modified:
   trunk/gui/util/string.c

Modified: trunk/gui/util/string.c
==============================================================================
--- trunk/gui/util/string.c	Mon Dec  3 12:22:13 2012	(r35575)
+++ trunk/gui/util/string.c	Mon Dec  3 12:50:59 2012	(r35576)
@@ -314,7 +314,7 @@ char *TranslateFilename(int how, char *f
         if (guiInfo.Chapter)
             snprintf(fname, maxlen, MSGTR_Chapter, guiInfo.Chapter);
         else
-            av_strlcat(fname, MSGTR_NoChapter, maxlen);
+            av_strlcpy(fname, MSGTR_NoChapter, maxlen);
         break;
 
     default:


More information about the MPlayer-cvslog mailing list