Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8572) ext conn dialog improvements
Home

[Freeciv-Dev] (PR#8572) ext conn dialog improvements

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8572) ext conn dialog improvements
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Fri, 23 Apr 2004 17:17:58 -0700
Reply-to: rt@xxxxxxxxxxx

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

Found another issue. This time with long composite names like: "Pierre
Trudeau". Here is the patch.


Index: client/connectdlg_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/connectdlg_common.c,v
retrieving revision 1.8
diff -u -r1.8 connectdlg_common.c
--- client/connectdlg_common.c  23 Apr 2004 23:37:04 -0000      1.8
+++ client/connectdlg_common.c  24 Apr 2004 00:15:21 -0000
@@ -342,7 +342,8 @@
 
   send_chat("/set timeout 0");
   send_chat("/set autotoggle 1");
-  my_snprintf(buf, sizeof(buf), "/take %s %s", user_name, player_name);
+  my_snprintf(buf, sizeof(buf), "/take \"%s\" \"%s\"",
+             user_name, player_name);
   send_chat(buf);
   send_chat("/start");
 }

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