]> git.saurik.com Git - wxWidgets.git/commitdiff
Add missing space to fix r73681 changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Mar 2013 15:43:32 +0000 (15:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Mar 2013 15:43:32 +0000 (15:43 +0000)
We need a space between the command and stderr redirection to avoid the "2"
from being taken as part of the last option on the command line.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/utilsunx.cpp

index 5b6caba63cdaa5dd302ff894f5ecd743e8698e83..bba1eb7be5cf7d2c9cdc210bf40698f377061cbd 100644 (file)
@@ -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,