summaryrefslogtreecommitdiff
path: root/src
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
commit82b0704bcc7a8632c5f6d8d57cc2aa1c7acb38b6 (patch)
treea043e94aaf75a0c0de6d54e9f40dd04495c6b8a7 /src
parentaee29710bd7d156373dc02356e3f5a16acb694e3 (diff)
downloadopenttd-82b0704bcc7a8632c5f6d8d57cc2aa1c7acb38b6.tar.xz
(svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output
Diffstat (limited to 'src')
-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;