Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37759687
en ru br
ALT Linux repos
S:0.9.13-alt1

Group :: Emulators
RPM: desmume

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: desmume-0.9.13-formatstring.patch
Download


diff -durN desmume-release_0_9_13.orig/desmume/src/commandline.cpp desmume-release_0_9_13/desmume/src/commandline.cpp
--- desmume-release_0_9_13.orig/desmume/src/commandline.cpp	2022-05-23 06:37:41.000000000 +0200
+++ desmume-release_0_9_13/desmume/src/commandline.cpp	2022-06-18 18:40:49.218922840 +0200
@@ -31,7 +31,7 @@
 #include <compat/getopt.h>
 //#include "frontend/modules/mGetOpt.h" //to test with this, make sure global `optind` is initialized to 1
 
-#define printerror(...) fprintf(stderr, __VA_ARGS__)
+#define printerror(...) fprintf(stderr, "%s", __VA_ARGS__)
 
 int _scanline_filter_a = 0, _scanline_filter_b = 2, _scanline_filter_c = 2, _scanline_filter_d = 4;
 int _commandline_linux_nojoy = 0;
@@ -397,7 +397,7 @@
 
 	if(opt_help)
 	{
-		printf(help_string);
+		printf("%s", help_string);
 		exit(1);
 	}
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin