Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11011) win32: server crash
Home

[Freeciv-Dev] (PR#11011) win32: server crash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11011) win32: server crash
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Nov 2004 20:28:57 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11011 >

> [use_less - Sun Nov 14 04:24:00 2004]:
> 
> Crashes upon any input.  Here's the civserver.RPT.

Ooh, that's pretty.

jason

Index: server/sernet.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/sernet.c,v
retrieving revision 1.125
diff -u -r1.125 sernet.c
--- server/sernet.c     13 Nov 2004 09:16:59 -0000      1.125
+++ server/sernet.c     14 Nov 2004 04:28:39 -0000
@@ -563,7 +563,7 @@
     
 #ifdef SOCKET_ZERO_ISNT_STDIN
     if (!no_input && (bufptr = my_read_console())) {
-      char bufptr_internal = local_to_internal_string_malloc(bufptr);
+      char *bufptr_internal = local_to_internal_string_malloc(bufptr);
 
       con_prompt_enter();      /* will need a new prompt, regardless */
       handle_stdin_input(NULL, bufptr_internal, FALSE);

[Prev in Thread] Current Thread [Next in Thread]