Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12479) use mystrcasecmp
Home

[Freeciv-Dev] (PR#12479) use mystrcasecmp

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12479) use mystrcasecmp
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Mar 2005 21:55:25 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12479 >

This patch replaces erronous users of strcasecmp with mystrcasecmp.  To 
be committed immediately.

-jason

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.387
diff -u -r1.387 stdinhand.c
--- server/stdinhand.c  9 Mar 2005 21:43:13 -0000       1.387
+++ server/stdinhand.c  11 Mar 2005 05:54:41 -0000
@@ -137,9 +137,9 @@
       return PNameEmpty;
   } else if (len > MAX_LEN_NAME-1) {
       return PNameTooLong;
-  } else if (strcasecmp(name, ANON_PLAYER_NAME) == 0) {
+  } else if (mystrcasecmp(name, ANON_PLAYER_NAME) == 0) {
       return PNameIllegal;
-  } else if (strcasecmp(name, OBSERVER_NAME) == 0) {
+  } else if (mystrcasecmp(name, OBSERVER_NAME) == 0) {
       return PNameIllegal;
   }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12479) use mystrcasecmp, Jason Short <=