]> code.citadel.org Git - citadel.git/commitdiff
* cmd_cflr() - don't allow zero length floor names
authorArt Cancro <ajc@citadel.org>
Sat, 26 Oct 2002 06:15:09 +0000 (06:15 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 26 Oct 2002 06:15:09 +0000 (06:15 +0000)
citadel/ChangeLog
citadel/room_ops.c

index 27b8c6bd9e0b57f066ded92c881f3f0d7c4c4ea2..e4157e4c27f3f43f40ad0c9e1d98c847775518c5 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 601.53  2002/10/26 06:15:09  ajc
+ * cmd_cflr() - don't allow zero length floor names
+
  Revision 601.52  2002/10/26 06:01:19  ajc
  * Increase size of temp file name buffer in struct CitContext
 
@@ -4165,3 +4168,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index a6b225f492e3c45b9798f3ba7f71e90a7db497ae..26304187b7116e3de0d837673c1ac672aa106fc8 100644 (file)
@@ -1810,9 +1810,14 @@ void cmd_cflr(char *argbuf)
        extract(new_floor_name, argbuf, 0);
        cflr_ok = extract_int(argbuf, 1);
 
-
        if (CtdlAccessCheck(ac_aide)) return;
 
+       if (strlen(new_floor_name) == 0) {
+               cprintf("%d Blank floor name not allowed.\n",
+                       ERROR+ILLEGAL_VALUE);
+               return;
+       }
+
        for (a = 0; a < MAXFLOORS; ++a) {
                getfloor(&flbuf, a);