File: format-string.diff

package info (click to toggle)
vbrfix 0.24%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,600 kB
  • sloc: sh: 8,089; perl: 2,029; cpp: 834; makefile: 33
file content (14 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Insert format string that is needed by fprintf
Author: Bastian Germann <bage@debian.org>
---
--- vbrfix-0.24+dfsg.orig/vbrfixc/vbrfix.cpp
+++ vbrfix-0.24+dfsg/vbrfixc/vbrfix.cpp
@@ -42,7 +42,7 @@ void VbrFix::clearMp3Info(){
 }
 void VbrFix::logFile(const char* s){//log file info not tested yet
   if(log==NULL)return;
-  fprintf(log,s);fprintf(log,"\n");
+  fprintf(log,"%s",s);fprintf(log,"\n");
   fflush(log);
 }
 void VbrFix::startWriting(){