summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-02-06 17:25:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-06 17:25:54 +0900
commit13f8697e0f3a557d6d1f15f11d2e5991b00bccb8 (patch)
tree138bd6d14b216cf70501721eaceda9f4d27851ef
parent7390d40f774d7533389294ee356e8c29ccebdbe9 (diff)
downloadtdebase-13f8697e0f3a557d6d1f15f11d2e5991b00bccb8.tar.gz
tdebase-13f8697e0f3a557d6d1f15f11d2e5991b00bccb8.zip
Make sure to convert TQCString to const char* when passing it to a variadic function (printf).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--tdm/kfrontend/kgapp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp
index 82630ba09..58b9d2e9c 100644
--- a/tdm/kfrontend/kgapp.cpp
+++ b/tdm/kfrontend/kgapp.cpp
@@ -322,7 +322,7 @@ kg_main( const char *argv0 )
iccCommand += TQString(" %1 &").arg(iccconfig.readEntry("ICCFile"));
if (system(iccCommand.local8Bit()) < 0)
{
- printf("WARNING: Unable to execute command \"%s\"\n", iccCommand.local8Bit());
+ printf("WARNING: Unable to execute command \"%s\"\n", iccCommand.local8Bit().data());
}
}
}