Author: cazfi
Date: Tue Mar 24 03:35:18 2015
New Revision: 28604

URL: http://svn.gna.org/viewcvs/freeciv?rev=28604&view=rev
Log:
Increased maximum size of a packet in json protocol five-fold.

See patch #5942

Modified:
    trunk/common/packets_json.h

Modified: trunk/common/packets_json.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/packets_json.h?rev=28604&r1=28603&r2=28604&view=diff
==============================================================================
--- trunk/common/packets_json.h (original)
+++ trunk/common/packets_json.h Tue Mar 24 03:35:18 2015
@@ -25,7 +25,7 @@
                                       enum packet_type *ptype);
 
 #define SEND_PACKET_START(packet_type) \
-  unsigned char buffer[MAX_LEN_PACKET]; \
+  unsigned char buffer[MAX_LEN_PACKET * 5]; \
   char *json_buffer = NULL; \
   struct json_data_out dout; \
   dout.json = json_object(); \


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to