Ticket #3698: fix mcedit codejump (etags filenames parsing)
commit224f53518e75ec1736a6617257580f495abc1154
authorRoman Mikhayloff <rimf@inbox.ru>
Sat, 8 Oct 2016 09:15:22 +0000 (8 11:15 +0200)
committerYury V. Zaytsev <yury@shurup.com>
Sat, 8 Oct 2016 09:15:22 +0000 (8 11:15 +0200)
tree8a319a81e2e8ab2142a7f9734570348cc6b2c0de
parent2c576fad940e8bb5b5ee1cc07add8116ff5118fc
Ticket #3698: fix mcedit codejump (etags filenames parsing)

This got broken in the following commit for mc-4.8.16:

    a5ebb7d6199ae41cb71743bd2a2f4197b973dad6

As `g_strlcpy` got replaced with `g_strndup`, the meaning of the last
argument has changed: it is no longer the destination size in bytes, but
the maximum number of bytes to copy, and so it had to be decremented by
one accordingly, hence the bug.

Signed-off-by: Roman Mikhayloff <rimf@inbox.ru>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
src/editor/etags.c