1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: Package Salvaging Team <team+salvage@tracker.debian.org>
Date: Thu, 14 Nov 2024 00:03:06 +0100
Subject: fix-string-format-error
---
src/concalc.cpp | 4 ++--
src/global.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/concalc.cpp b/src/concalc.cpp
index 6f8caff..3805eb4 100644
--- a/src/concalc.cpp
+++ b/src/concalc.cpp
@@ -438,7 +438,7 @@ int main(int argc,char**argv)
break;
case NCHAR:
{
- printf(value.cval);
+ printf("%s", value.cval);
break;
}
default:
@@ -676,7 +676,7 @@ void loadSubScripts(ThreadSync*scriptData,Preferences*pref,Variable*vars,Script*
initDebugging(subFileContent,scriptData);
cleanSubFileContent=preprocessor(subFileContent,pref,true);
fprintf(stderr,"\nProcessing file ");
- fprintf(stderr,scriptData->subprogramPath[c]);
+ fprintf(stderr,"%s", scriptData->subprogramPath[c]);
fprintf(stderr,"\n");
if(cleanSubFileContent==NULL)
{
diff --git a/src/global.cpp b/src/global.cpp
index 2a26a3e..0f89dce 100644
--- a/src/global.cpp
+++ b/src/global.cpp
@@ -7128,7 +7128,7 @@ void printError(const char*string,int semicolonCount,ThreadSync*data)
}
- fprintf(stderr,string);
+ fprintf(stderr,"%s",string);
fprintf(stderr,"\n");
}
#else
|