diff options
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; } |