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); }