From: Ari Johnson Date: Mon, 18 Jul 2011 21:46:10 +0000 (-0400) Subject: Hand-apply commit e58e28903371ef25d505498b7072e87037fca695 from 0.73-development X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=ef6790e9966f9e6424812935e46bdb7bc535faec;p=cobramush.git Hand-apply commit e58e28903371ef25d505498b7072e87037fca695 from 0.73-development --- diff --git a/src/funmisc.c b/src/funmisc.c index 87807c2..8353cd4 100644 --- a/src/funmisc.c +++ b/src/funmisc.c @@ -847,7 +847,8 @@ FUNCTION(fun_signal) { if(qsig == QID_FALSE) { safe_str("#-1 INVALID SIGNAL", buff, bp); return; - } else if(qsig == QID_TIME && (!*args[2] || atoi(args[2]) < 0)) { + } else if(qsig == QID_TIME && (!args[2] || !*args[2] || + atoi(args[2]) < 0)) { safe_str("#-1 INVALID TIME ARGUMENT", buff, bp); return; }