From bff4f4b334775138417a05536880ec71e439fd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 11 Aug 2014 12:15:42 +0200 Subject: [PATCH] skip null byte --- include/mbgl/util/uv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbgl/util/uv.hpp b/include/mbgl/util/uv.hpp index a083229cc..518e007af 100644 --- a/include/mbgl/util/uv.hpp +++ b/include/mbgl/util/uv.hpp @@ -29,7 +29,7 @@ inline std::string cwd() { dir.resize(max); uv_cwd(const_cast(dir.data()), &max); } while (max == dir.size()); - dir.resize(max); + dir.resize(max - 1); return dir; }