1
0
mirror of https://github.com/TASVideos/desmume synced 2024-07-03 08:18:44 +00:00

Create 6508c2b115f954afece4243e36e9e35e1d459ea8.patch

This commit is contained in:
Kimpe Andy 2024-02-01 10:59:29 +01:00 committed by GitHub
parent b9738bd476
commit 05ed457898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,31 @@
From 6508c2b115f954afece4243e36e9e35e1d459ea8 Mon Sep 17 00:00:00 2001
From: zeromus <zeromus@users.noreply.github.com>
Date: Thu, 1 Feb 2024 04:26:27 -0500
Subject: [PATCH] placate -Werror=format-security (probably) (re: #768)
---
desmume/src/commandline.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/desmume/src/commandline.cpp b/desmume/src/commandline.cpp
index cb6c23ac4..4c7bcc4a0 100644
--- a/desmume/src/commandline.cpp
+++ b/desmume/src/commandline.cpp
@@ -397,7 +397,7 @@ bool CommandLine::parse(int argc,char **argv)
if(opt_help)
{
- printf(help_string);
+ printf("%s",help_string);
exit(1);
}
@@ -571,7 +571,7 @@ bool CommandLine::validate()
void CommandLine::errorHelp(const char* binName)
{
- printerror(help_string);
+ printerror("%s",help_string);
}
void CommandLine::process_movieCommands()