summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-06-19 21:13:30 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-10-15 14:04:39 +0100
commitbeb1c03ba5ae7c3e8ad9d0a5bd616274617130ae (patch)
tree073828baf443409915204c1a55659f10cf2f5287 /hw
parent4cd73c92836685d7393b3e81701561ebd5ab5817 (diff)
Slightly adjust the formatting of the logged command line
Copyright (C) Colin Harrison 2005-2008 http://www.straightrunning.com/XmingNotes/ http://sourceforge.net/projects/xming/ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw')
-rwxr-xr-xhw/xwin/winprocarg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xwin/winprocarg.c b/hw/xwin/winprocarg.c
index f3a037bbd..ae152938c 100755
--- a/hw/xwin/winprocarg.c
+++ b/hw/xwin/winprocarg.c
@@ -1459,13 +1459,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 */
@@ -1495,7 +1495,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));