Avoid overflow by writing x = (y * 7) / 8 as x = y - (y / 8); ok florian
authorotto <otto@openbsd.org>
Mon, 22 Mar 2021 15:34:07 +0000 (15:34 +0000)
committerotto <otto@openbsd.org>
Mon, 22 Mar 2021 15:34:07 +0000 (15:34 +0000)
commit07355dbd1c9004d45f7d53fe0bfb68d90547f648
treea5aee813a34440a77d1fbb112e041879262ebeee
parent320af302062917f617494d13163b8ea116e21a7b
Avoid overflow by writing x = (y * 7) / 8 as x = y - (y / 8); ok florian
sbin/dhcpleased/engine.c