From: Ari Johnson Date: Tue, 14 Nov 2006 14:27:09 +0000 (+0000) Subject: Fixed do_chan_title crash X-Git-Tag: 0.72p3~9 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=04c8250f914d351e41ada49efcb725768b51ea04;p=cobramush.git Fixed do_chan_title crash --- 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;