=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/clientloop.c,v retrieving revision 1.393 retrieving revision 1.394 diff -u -r1.393 -r1.394 --- src/usr.bin/ssh/clientloop.c 2023/08/28 03:31:16 1.393 +++ src/usr.bin/ssh/clientloop.c 2023/08/28 04:06:52 1.394 @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.393 2023/08/28 03:31:16 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.394 2023/08/28 04:06:52 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -609,9 +609,9 @@ return 0; /* Calculate number of intervals missed since the last check */ - n = (now.tv_sec - next_interval.tv_sec) * 1000 * 1000 * 1000; + n = (now.tv_sec - next_interval.tv_sec) * 1000LL * 1000 * 1000; n += now.tv_nsec - next_interval.tv_nsec; - n /= options.obscure_keystroke_timing_interval * 1000 * 1000; + n /= options.obscure_keystroke_timing_interval * 1000LL * 1000; n = (n < 0) ? 1 : n + 1; /* Advance to the next interval */