diff options
author | darkvater <darkvater@openttd.org> | 2004-12-23 22:31:46 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-12-23 22:31:46 +0000 |
commit | b2499545385caeb4d9ccc8b8d1c8737441ae5ae9 (patch) | |
tree | 0c36d0f7aed9d6abbdcb4025305824270c0169da /dedicated.c | |
parent | dda14faac5242af4940dd012f32f9cfbea0738f2 (diff) | |
download | openttd-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.c | 2 |
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 |