mirror of
https://github.com/opnsense/src.git
synced 2026-05-14 18:20:21 -04:00
This fixes the following warning from clang 14:
usr.sbin/bootparamd/bootparamd/bootparamd.c:204:32: error: 'fscanf' may
overflow; destination buffer in argument 3 has size 255, but the
corresponding specifier may require size 256 [-Werror,-Wfortify-source]
The MAX_MACHINE_NAME macro indicates the maximum number of bytes in a
machine name, but it does not include the NUL terminator required for
scanf.
MFC after: 3 days
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bootparamd | ||
| callbootd | ||
| Makefile | ||
| Makefile.inc | ||