Bugfix: buffer overflows in g_handle->path(rev. 14)

Signed-off-by: nixnodes <code@eth.si>