[xiph-commits] r18060 - trunk/ffmpeg2theora/src

j at svn.xiph.org j at svn.xiph.org
Fri Aug 5 04:50:10 PDT 2011


Author: j
Date: 2011-08-05 04:50:10 -0700 (Fri, 05 Aug 2011)
New Revision: 18060

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
use a string literal for formatting

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2011-08-04 20:27:38 UTC (rev 18059)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2011-08-05 11:50:10 UTC (rev 18060)
@@ -2860,7 +2860,7 @@
                     /* reserve 4 bytes in the buffer for the `.og[va]' extension */
                     snprintf(outputfile_name, sizeof(outputfile_name) - strlen(ext), "%s",inputfile_name);
                     if ((str_ptr = strrchr(outputfile_name, '.'))) {
-                        sprintf(str_ptr, ext);
+                        sprintf(str_ptr, "%s", ext);
                         if (!strcmp(inputfile_name, outputfile_name)) {
                             snprintf(outputfile_name, sizeof(outputfile_name), "%s%s", inputfile_name, ext);
                         }



More information about the commits mailing list