oslib: fix strlcat's incorrect copying