Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] patch: disallow blank player names (PR#474)
Home

[Freeciv-Dev] patch: disallow blank player names (PR#474)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch: disallow blank player names (PR#474)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 23 Jul 2000 22:12:01 -0700 (PDT)

This patch trims leading and trailing spaces from player names, 
and disallows blank players names, since all these may cause 
problems with, eg, specifying player names in server commands.

(Adds functions remove_leading_spaces() and
remove_leading_trailing_spaces() in shared.c, and makes minor 
fixes to remove_trailing_spaces(). (Specifically, t could point 
1 before s, which a strict C implementation could disallow...))

-- David

Attachment: remove_spaces1.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patch: disallow blank player names (PR#474), David Pfitzner <=