Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > by-pkgid > d124f1d0e52e49bd8e081edd36b6d121 > files > 1

mp3info-0.8.5a-20.mga9.src.rpm

--- textfunc.c	2006-11-06 09:59:12.000000000 +0100
+++ textfunc.c.oden	2009-10-05 13:53:54.000000000 +0200
@@ -227,7 +227,7 @@ void format_output (char *format_string,
 
 	while((percent=strchr(format,'%'))) {
 		*percent=0;
-		printf(format);
+		printf("%s", format);
 		*percent='%';
 		code=percent+1;
 		while(*code && (code[0] != '%' && !isalpha(*code))) code++;
@@ -354,7 +354,7 @@ void format_output (char *format_string,
 		}
 		
 	}
-	printf(format);
+	printf("%s", format);
 }
 
 
Index: mp3info-0.8.5a/textfunc.c
===================================================================
--- textfunc.c
+++ textfunc.c	2022-03-11 16:12:39.675052607 -0800
@@ -34,7 +34,7 @@
  */
 
 void CenterText(int line, char *text) {
-   mvprintw(line,(COLS/2)-((int)strlen(text)/2),text);
+   mvprintw(line,(COLS/2)-((int)strlen(text)/2),"%s",text);
 }
 
 /* Convert hex digit to integer */