libm4: fix path_truncate() regressions on OS/2.
commitbef10ccba44e1689551324d68926444fce39b455
authorKO Myung-Hun <komh@chollian.net>
Tue, 9 Dec 2014 20:46:11 +0000 (9 20:46 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 9 Dec 2014 20:46:11 +0000 (9 20:46 +0000)
treef5c5337317836118cc14090e61d7dc455563ba66
parentfa1b673a452f5c7874cb5dd2610b5238cedc4d65
libm4: fix path_truncate() regressions on OS/2.

* m4/path.c (m4_path_search): Ensure that a null-terminator is
appended. Re-calculate a length of path after path_truncate().

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
m4/path.c