Author: cazfi
Date: Wed Sep 16 05:02:05 2015
New Revision: 29895

URL: http://svn.gna.org/viewcvs/freeciv?rev=29895&view=rev
Log:
Avoid garbage characters in the beginning of the ruleset summary at client side.

See bug #23869

Modified:
    trunk/client/packhand.c

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=29895&r1=29894&r2=29895&view=diff
==============================================================================
--- trunk/client/packhand.c     (original)
+++ trunk/client/packhand.c     Wed Sep 16 05:02:05 2015
@@ -3028,7 +3028,7 @@
 
   game.ruleset_summary = fc_malloc(len + 1);
 
-  fc_strlcat(game.ruleset_summary, packet->text, len);
+  fc_strlcpy(game.ruleset_summary, packet->text, len);
 }
 
 /****************************************************************************


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

Reply via email to