Fixed do_chan_title crash [AEJ]
authorAri Johnson <ari@cobramush.org>
Fri, 2 Mar 2007 05:22:36 +0000 (05:22 +0000)
committerAri Johnson <ari@cobramush.org>
Fri, 2 Mar 2007 05:22:36 +0000 (05:22 +0000)
src/extchat.c

index d5da9a5a788b8e36d37f1bd43c180d2c5750aee8..687da5c93576364fcb1305eb9f91c58328e7852f 100644 (file)
@@ -2128,6 +2128,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;