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

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

See bug #23869

Modified:
    branches/S2_6/client/packhand.c

Modified: branches/S2_6/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/packhand.c?rev=29896&r1=29895&r2=29896&view=diff
==============================================================================
--- branches/S2_6/client/packhand.c     (original)
+++ branches/S2_6/client/packhand.c     Wed Sep 16 05:02:16 2015
@@ -2992,7 +2992,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