Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: libutil, use secure idiom from snprintf(3)
To:
tech@openbsd.org
Date:
Mon, 25 Aug 2025 11:20:39 +0200

Download raw body.

Thread
On Mon, Aug 25, 2025 at 10:44:32AM +0200, Claudio Jeker wrote:
> make WARNINGS=yes currently complains about two files that don't do the
> error checking as it is shown in snprintf(3).
> 
> uucplock.c was just missing the size_t case.
> opendev.c did not check for < 0. I adjusted to code to use the idiom from
> the man page which inverts the logic of the if else statement.

ok tb