usr.sbin/makefs/hammer2: Avoid overlapped snprintf buffer
authorTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 25 Jun 2023 04:59:07 +0000 (21:59 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Sun, 25 Jun 2023 05:25:39 +0000 (22:25 -0700)
commit9a393dfb197bf13985cfa520ca1de7e134e9aa1e
treee1000e42771c19037f5e8224c7c2a4f8c7adebb1
parentfc4148fe6433963760fb77515a762ce076e70282
usr.sbin/makefs/hammer2: Avoid overlapped snprintf buffer

When "-o R" path argument contained symlink, the output path
was partly copying from/to the same buffer in stack. Use a
different buffer.

While here, move 64KB buffer for reading from stack to heap.
usr.sbin/makefs/hammer2.c