[Lldb-commits] [lldb] r113179 - /lldb/trunk/tools/driver/Driver.cpp

Greg Clayton gclayton at apple.com
Mon Sep 6 16:01:25 PDT 2010


Author: gclayton
Date: Mon Sep  6 18:01:25 2010
New Revision: 113179

URL: http://llvm.org/viewvc/llvm-project?rev=113179&view=rev
Log:
Fixed an error where a random string would get executed after a recent fix that checked if the window column size was zero was added on the lldb driver startup.

Modified:
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=113179&r1=113178&r2=113179&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Mon Sep  6 18:01:25 2010
@@ -1088,8 +1088,10 @@
         char buffer[25];
 
         if (window_size.ws_col > 0)
+        {
             sprintf (buffer, "settings set term-width %d", window_size.ws_col);
-        m_debugger.HandleCommand ((const char *) buffer);
+            m_debugger.HandleCommand ((const char *) buffer);
+        }
     }
 
     // Since input can be redirected by the debugger, we must insert our editline





More information about the lldb-commits mailing list