From aacd2f05a1e0eb0f640c35a9d0c0d124b5a458ed Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sun, 22 Aug 2010 00:56:16 +0000 Subject: multinotice values should just never be negative --- lib/Zinternal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Zinternal.c b/lib/Zinternal.c index 189fa6e..65dcf5c 100644 --- a/lib/Zinternal.c +++ b/lib/Zinternal.c @@ -361,12 +361,11 @@ Z_ReadWait(void) if (slash) { part = atoi(notice.z_multinotice); partof = atoi(slash+1); - if (part > partof || partof == 0) { + if (part < 0 || part > partof || partof <= 0) { part = 0; partof = notice.z_message_len; } - } - else { + } else { part = 0; partof = notice.z_message_len; } -- cgit v1.2.3