From b2499545385caeb4d9ccc8b8d1c8737441ae5ae9 Mon Sep 17 00:00:00 2001 From: darkvater Date: Thu, 23 Dec 2004 22:31:46 +0000 Subject: (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 --- dedicated.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dedicated.c') 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 -- cgit v1.2.3-54-g00ecf