From 04c8250f914d351e41ada49efcb725768b51ea04 Mon Sep 17 00:00:00 2001
From: Ari Johnson <ari@nveid.com>
Date: Tue, 14 Nov 2006 14:27:09 +0000
Subject: [PATCH] Fixed do_chan_title crash

---
 game/txt/changes/0.72p3 | 1 +
 src/extchat.c           | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/game/txt/changes/0.72p3 b/game/txt/changes/0.72p3
index 123abd9..0457e53 100644
--- a/game/txt/changes/0.72p3
+++ b/game/txt/changes/0.72p3
@@ -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]
 
diff --git a/src/extchat.c b/src/extchat.c
index 2b20fce..36150f7 100644
--- a/src/extchat.c
+++ b/src/extchat.c
@@ -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;
-- 
2.30.2