summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2010-08-22 00:56:16 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2010-08-22 00:56:16 +0000
commitaacd2f05a1e0eb0f640c35a9d0c0d124b5a458ed (patch)
tree133534e026bb66f027cb891247cf1edccb86e0ba /lib
parent63d1172508ff4ad0f5bf88b5f9f94d083a36664d (diff)
multinotice values should just never be negative
Diffstat (limited to 'lib')
-rw-r--r--lib/Zinternal.c5
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;
}