<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40515 >

2008/10/5 Christian Prochaska:
>
> The problem is that send_chat_printf() cuts the /load message (and any
> other message) after 50 characters, so the path gets trunkated.

 We should
 1) Make initial buffer bigger so that message usually fits to it
 2) Make buffer dynamically expanding just in case.

 Even with #40518 making dynamic buffer implementation harder, we can
at least make current static buffer bigger.


 - ML

diff -Nurd -X.diff_ignore freeciv/client/chatline_common.c 
freeciv/client/chatline_common.c
--- freeciv/client/chatline_common.c    2008-06-22 07:52:30.000000000 +0300
+++ freeciv/client/chatline_common.c    2008-10-07 04:54:04.000000000 +0300
@@ -73,7 +73,7 @@
 **************************************************************************/
 void send_chat_printf(const char *format, ...)
 {
-  char msg[50];
+  char msg[250];
   int maxlen = sizeof(msg);
 
   va_list ap;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to