]> git.ipfire.org Git - thirdparty/bind9.git/commit
Resize unamebuf[] to avoid warnings about snprintf() not having
authorMark Andrews <marka@isc.org>
Tue, 23 Jun 2020 07:00:43 +0000 (17:00 +1000)
committerMark Andrews <marka@isc.org>
Wed, 24 Jun 2020 23:32:02 +0000 (09:32 +1000)
commit003d9d55ca4760125abc035528ebc6b26ae32fda
tree2bdd371ec5e986807ab91d0fafb41f99e601ea70
parentb8fbd0a1aeb4192d39469394f2635ec2fa906465
Resize unamebuf[] to avoid warnings about snprintf() not having
enough buffer space.  Also change named_os_uname() prototype so
that it is now returning (const char *) rather than (char *).  If
uname() is not supported on a UNIX build prepopulate unamebuf[]
with "unknown architecture".

(cherry picked from commit 4bc3de070fc9c0bc4d8d15d207e0b1352cd20434)
bin/named/unix/include/named/os.h
bin/named/unix/os.c
bin/named/win32/include/named/os.h
bin/named/win32/os.c