mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
cookies: A feeble attempt to support 16-bit int.
There are probably other places where it doesn't work, but this one caught my eye.
This commit is contained in:
parent
23a9a17827
commit
3e32131469
@ -358,7 +358,7 @@ set_cookie(struct uri *uri, unsigned char *str)
|
||||
|
||||
if (expires) {
|
||||
if (max_age > 0) {
|
||||
int seconds = max_age*24*3600;
|
||||
time_t seconds = ((time_t) max_age)*24*3600;
|
||||
time_t deadline = time(NULL) + seconds;
|
||||
|
||||
if (expires > deadline) /* Over-aged cookie ? */
|
||||
|
Loading…
Reference in New Issue
Block a user