summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2007-01-14 22:39:53 +0000
committerDarkvater <Darkvater@openttd.org>2007-01-14 22:39:53 +0000
commit62db889664e7c6bb74fc5268ff7de111bc4f6c25 (patch)
treea043e94aaf75a0c0de6d54e9f40dd04495c6b8a7
parent5f06f6796d5b788f10873e390665c113ede510a5 (diff)
downloadopenttd-62db889664e7c6bb74fc5268ff7de111bc4f6c25.tar.xz
(svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output
-rw-r--r--src/unix.cpp2
-rw-r--r--src/win32.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unix.cpp b/src/unix.cpp
index cd32b7631..fa49eca4d 100644
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -111,7 +111,7 @@ static void ChangeWorkingDirectory(char *exe)
void ShowInfo(const char *str)
{
- fprintf(stderr, str);
+ fprintf(stderr, "%s\n", str);
}
void ShowOSErrorBox(const char *buf)
diff --git a/src/win32.cpp b/src/win32.cpp
index b41204a9d..82611513e 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -838,7 +838,7 @@ void CreateConsole(void)
void ShowInfo(const char *str)
{
if (_has_console) {
- fprintf(stderr, str);
+ fprintf(stderr, "%s\n", str);
} else {
bool old;