From ef6790e9966f9e6424812935e46bdb7bc535faec Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Mon, 18 Jul 2011 17:46:10 -0400 Subject: [PATCH] Hand-apply commit e58e28903371ef25d505498b7072e87037fca695 from 0.73-development --- src/funmisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2