From: Colin Harrison <[email protected]>

Copyright (C) Colin Harrison 2005-2008
http://www.straightrunning.com/XmingNotes/
http://sourceforge.net/projects/xming/

Signed-off-by: Jon TURNEY <[email protected]>
---
 hw/xwin/winprocarg.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/xwin/winprocarg.c b/hw/xwin/winprocarg.c
index 38ee9a2..f20598d 100755
--- a/hw/xwin/winprocarg.c
+++ b/hw/xwin/winprocarg.c
@@ -1448,13 +1448,13 @@ winLogCommandLine (int argc, char *argv[])
   for (i = 0, iCurrLen = 0; i < argc; ++i)
     if (argv[i])
       {
-       /* Add a character for lines that overflow */
+       /* Adds two characters for lines that overflow */
        if ((strlen (argv[i]) < CHARS_PER_LINE
            && iCurrLen + strlen (argv[i]) > CHARS_PER_LINE)
            || strlen (argv[i]) > CHARS_PER_LINE)
          {
            iCurrLen = 0;
-           ++iSize;
+           iSize += 2;
          }
        
        /* Add space for item and trailing space */
@@ -1484,7 +1484,7 @@ winLogCommandLine (int argc, char *argv[])
        iCurrLen = 0;
        
        /* Add line break if it fits */
-       strncat (g_pszCommandLine, "\n", iSize - strlen (g_pszCommandLine));
+       strncat (g_pszCommandLine, "\n ", iSize - strlen (g_pszCommandLine));
       }
       
       strncat (g_pszCommandLine, argv[i], iSize - strlen (g_pszCommandLine));
-- 
1.6.1.2

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to