From e3d4b7625c8ac85e7af0a401ae83305d3fd42fa6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 12 Jan 2003 13:00:03 +0000 Subject: [PATCH] don't interpret format strings svn path=/trunk/kdebase/kwin/; revision=199217 --- main.cpp | 4 ++-- plugins.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 7211c9b77e..c67b2ba884 100644 --- a/main.cpp +++ b/main.cpp @@ -66,7 +66,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e){ || e->request_code == X_GrabKey ) && (e->error_code == BadAccess)) { - fprintf(stderr, i18n("kwin: it looks like there's already a window manager running. kwin not started.\n").local8Bit()); + fputs(i18n("kwin: it looks like there's already a window manager running. kwin not started.\n").local8Bit(), stderr); exit(1); } @@ -80,7 +80,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e){ fprintf(stderr, "kwin: %s(0x%lx): %s\n", req, e->resourceid, msg); if (initting) { - fprintf(stderr, i18n("kwin: failure during initialization; aborting").local8Bit()); + fputs(i18n("kwin: failure during initialization; aborting").local8Bit(), stderr); exit(1); } return 0; diff --git a/plugins.cpp b/plugins.cpp index 1f8c8a6edd..5b60f10da9 100644 --- a/plugins.cpp +++ b/plugins.cpp @@ -158,8 +158,8 @@ bool PluginMgr::loadPlugin(QString nameStr) void PluginMgr::shutdownKWin(const QString &error_msg) { - qWarning( (i18n("KWin: ") + error_msg + - i18n("\nKWin will now exit...")).latin1() ); + qWarning( "%s", (i18n("KWin: ") + error_msg + + i18n("\nKWin will now exit...")).latin1() ); exit(1); }