From 5624b159a92503526c8b759a31c57e8d73ed877a Mon Sep 17 00:00:00 2001 From: Per Cederqvist Date: Mon, 13 Mar 2000 11:51:12 +0000 Subject: [PATCH] =?UTF-8?q?(garb=5Ftext):=20Avoid=20overflow=20when=20conv?= =?UTF-8?q?erting=20the=20garb-nice=20value=20from=20days=20to=20seconds.?= =?UTF-8?q?=20=20(Suspected=20by=20Anders=20=C2=81=C3=85ke=20Carlsson.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/text-garb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/text-garb.c b/src/server/text-garb.c index 2052bf56..dae97eb0 100644 --- a/src/server/text-garb.c +++ b/src/server/text-garb.c @@ -1,5 +1,5 @@ /* - * $Id: text-garb.c,v 0.34 1999/06/05 19:52:10 ceder Exp $ + * $Id: text-garb.c,v 0.35 2000/03/13 11:51:12 ceder Exp $ * Copyright (C) 1991-1995, 1997-1999 Lysator Academic Computer Association. * * This file is part of the LysKOM server. @@ -34,7 +34,7 @@ #endif static const char * -rcsid = "$Id: text-garb.c,v 0.34 1999/06/05 19:52:10 ceder Exp $"; +rcsid = "$Id: text-garb.c,v 0.35 2000/03/13 11:51:12 ceder Exp $"; #include "rcs.h" USE(rcsid); @@ -185,7 +185,7 @@ garb_text(void) case recpt: if ( cached_conf_exists( misc->datum.recipient ) ) { - limit = (24 * 3600 * + limit = (24 * 3600.0 * cached_get_garb_nice( misc->datum.recipient )); if ( age < limit ) { @@ -199,7 +199,7 @@ garb_text(void) case cc_recpt: if ( cached_conf_exists( misc->datum.cc_recipient )) { - limit = ( 24 * 3600 + limit = (24 * 3600.0 * cached_get_garb_nice( misc->datum.cc_recipient )); if ( age < limit ) { @@ -213,7 +213,7 @@ garb_text(void) case bcc_recpt: if ( cached_conf_exists( misc->datum.bcc_recipient )) { - limit = ( 24 * 3600 + limit = (24 * 3600.0 * cached_get_garb_nice( misc->datum.bcc_recipient )); if ( age < limit ) { -- GitLab