summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 49e61a4e..e9ef946c 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -299,7 +299,7 @@ p_exmail()
getdata_str(b_lines - 2, 0, buf, ans, sizeof(ans), LCECHO, "10");
n = atoi(ans);
- if (!ans[0] || n<0)
+ if (!ans[0] || n<=0)
return 0;
if (n + cuser.exmailbox > MAX_EXKEEPMAIL)
n = MAX_EXKEEPMAIL - cuser.exmailbox;