fix unsafe strlen() in tmpfs_snap_attach_node()