path: fix 1 byte overflow with empty lists

If pap->pa_cnt is 0, then the local buffer is allocated as 1 byte,
but the code then writes two bytes to it '/' and '\0'.

Reviewed-by: Bill Kendall <wkendall@sgi.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
1 file changed