diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 5b6caba63c..bba1eb7be5 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -846,7 +846,7 @@ static wxString wxGetCommandOutput(const wxString &cmd) { // Suppress stderr from the shell to avoid outputting errors if the command // doesn't exist. - FILE *f = popen((cmd + "2>/dev/null").ToAscii(), "r"); + FILE *f = popen((cmd + " 2>/dev/null").ToAscii(), "r"); if ( !f ) { // Notice that this doesn't happen simply if the command doesn't exist,