diff options
author | Karl Ramm <kcr@1ts.org> | 2010-08-22 00:56:16 +0000 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2010-08-22 00:56:16 +0000 |
commit | aacd2f05a1e0eb0f640c35a9d0c0d124b5a458ed (patch) | |
tree | 133534e026bb66f027cb891247cf1edccb86e0ba /lib | |
parent | 63d1172508ff4ad0f5bf88b5f9f94d083a36664d (diff) |
multinotice values should just never be negative
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Zinternal.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |