From 5f1708b6e1ba5bb8fa43a84f4213f65621283abe Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 25 May 2015 16:09:00 +0200 Subject: [PATCH] CShellWindow: use my_system instead system, avoids possible errors --- src/gui/widget/shellwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index 5ed86d06c..370326e70 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -64,7 +64,7 @@ void CShellWindow::exec() std::string cmd; if (!(mode & VERBOSE)){ cmd = "PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin ; export PATH ; " + command + " 2>/dev/null >&2"; - int r = system(cmd.c_str()); + int r = my_system(cmd.c_str()); if (res) { if (r == -1) *res = r;