summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 22:31:46 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 22:31:46 +0000
commitb2499545385caeb4d9ccc8b8d1c8737441ae5ae9 (patch)
tree0c36d0f7aed9d6abbdcb4025305824270c0169da /dedicated.c
parentdda14faac5242af4940dd012f32f9cfbea0738f2 (diff)
downloadopenttd-b2499545385caeb4d9ccc8b8d1c8737441ae5ae9.tar.xz
(svn r1266) -Fix: fix some cygwin/mingw warnings
-Note: when compiling with MinGW (-mno-cygwin) __MINGW32__ is defined; when compiling without it __CYGWIN32__ is defined. You need to set either -mno-cygwin (MinGW) or -mwin32 (Cygwin) to have WIN32 defined
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dedicated.c b/dedicated.c
index f34c26ea0..ed9df3b58 100644
--- a/dedicated.c
+++ b/dedicated.c
@@ -162,7 +162,7 @@ static void DedicatedHandleKeyInput()
else {
printf("\n");
IConsoleCmdExec(input_line);
- sprintf(input_line, "");
+ input_line[0] = '\0';
}
}
#endif