]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
be EVEN more defensive
authorRudolf Polzer <divverent@xonotic.org>
Fri, 17 Feb 2012 19:02:26 +0000 (20:02 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 17 Feb 2012 19:02:26 +0000 (20:02 +0100)
qcsrc/server/ipban.qc

index 9965113f67474bee4e6cc878cc9f11c04b34fef5..fc889ecf2d0ad9e683e82e2045ab9764b0fa10d9 100644 (file)
@@ -565,21 +565,21 @@ void Ban_KickBanClient(entity client, float bantime, float masksize, string reas
        switch(masksize)
        {
                case 1:
-                       ip = ban_ip1;
+                       ip = strcat1(ban_ip1);
                        break;
                case 2:
-                       ip = ban_ip2;
+                       ip = strcat1(ban_ip2);
                        break;
                case 3:
-                       ip = ban_ip3;
+                       ip = strcat1(ban_ip3);
                        break;
                case 4:
                default:
-                       ip = ban_ip4;
+                       ip = strcat1(ban_ip4);
                        break;
        }
        if(ban_idfp)
-               id = ban_idfp;
+               id = strcat1(ban_idfp);
        else
                id = string_null;