libfstools: support file paths longer than 255 chars
authorRafał Miłecki <rafal@milecki.pl>
Thu, 4 Jan 2018 13:58:18 +0000 (14:58 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 5 Jan 2018 13:48:27 +0000 (14:48 +0100)
commitde6b026d685670fbb10279c4a75a9227d94f22d2
tree8221e8f9a3e0d1c79dc0017b2af3c47a04888ed9
parent11efbf3b90f031ce634fc38cad07a4aef2985777
libfstools: support file paths longer than 255 chars

Alloc globdir buffer dynamically and simply use realloc when needed.
This fixes e.g. segmentation fault in jffs2reset due to an infinite
recurrency when dealing with longs paths.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
libfstools/overlay.c