getcwd() operates on buffers of PATH_MAX including the NUL, and the +1
authorderaadt <deraadt@openbsd.org>
Wed, 15 Dec 2021 04:01:52 +0000 (04:01 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 15 Dec 2021 04:01:52 +0000 (04:01 +0000)
commit993f8b84c9ce4be4421cebb4b89dce2fe71fa7b0
treeae5ea74e5d8af7ae950645c9c0faac909597921d
parent83adb6b7a3307c10968eddcbf72edb4248771225
getcwd() operates on buffers of PATH_MAX including the NUL, and the +1
is not unneccesary. Different buffer sizes are actually dangerous, though
major problems are strangely rare.
ok millert
bin/ksh/misc.c