Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5624b159
Commit
5624b159
authored
Mar 13, 2000
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(garb_text): Avoid overflow when converting the garb-nice value from
days to seconds. (Suspected by Anders Åke Carlsson.)
parent
e4019c15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/server/text-garb.c
src/server/text-garb.c
+5
-5
No files found.
src/server/text-garb.c
View file @
5624b159
/*
* $Id: text-garb.c,v 0.3
4 1999/06/05
1
9
:5
2
:1
0
ceder Exp $
* $Id: text-garb.c,v 0.3
5 2000/03/13
1
1
:5
1
:1
2
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.3
4 1999/06/05
1
9
:5
2
:1
0
ceder Exp $"
;
rcsid
=
"$Id: text-garb.c,v 0.3
5 2000/03/13
1
1
:5
1
:1
2
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment