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
commit2a0f68a6c56de83ac17528dee6f981fff8e77ae0 (patch)
tree0c36d0f7aed9d6abbdcb4025305824270c0169da /dedicated.c
parentc19b04efe84baf1146246ee062c0f0c3a93aed36 (diff)
downloadopenttd-2a0f68a6c56de83ac17528dee6f981fff8e77ae0.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