Fixed do_chan_title crash
authorAri Johnson <ari@nveid.com>
Tue, 14 Nov 2006 14:27:09 +0000 (14:27 +0000)
committerAri Johnson <ari@nveid.com>
Tue, 14 Nov 2006 14:27:09 +0000 (14:27 +0000)
game/txt/changes/0.72p3
src/extchat.c

index 123abd99c9a16e316ae9c7ef1653f7d1dde76de5..0457e53ac5b75da1b0939d5803ebe9363654992b 100644 (file)
@@ -9,4 +9,5 @@ CobraMUSH Version 0.72p3
   It is the third bugfix/maintenance release in that series.
 
   Fixes:
+    * Fixed do_chan_title crash [AEJ]
 
index 2b20fce092b51bf81e79652a84f5917f022310e8..36150f74f3aac74821a13e1550d92b563ca8c4af 100644 (file)
@@ -2122,6 +2122,8 @@ do_chan_title(dbref player, const char *name, const char *title)
     notify(player, T("You must specify a channel."));
     return;
   }
+  if (!title)
+    title = "";
   if (strlen(title) >= CU_TITLE_LEN) {
     notify(player, T("Title too long."));
     return;