block: use dynamically allocated target string
authorDaniel Golle <daniel@makrotopia.org>
Wed, 12 May 2021 22:35:46 +0000 (23:35 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 15 May 2021 23:28:11 +0000 (00:28 +0100)
commitbd7cc8dd12481167d5a3b289c19ca9ccd8effa7c
tree7a89f3e7164848620d0466733ca2ba1c0a28c4cf
parentb5397a142d3ac35daeb526b1df82ccbf64bff741
block: use dynamically allocated target string

Dynamically allocate string buffer for target mountpoint if needed in
order to avoid the static buffer overflowing for long (device mapper)
paths.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c