fix the fix

This commit is contained in:
Arvid Norberg
2012-02-16 08:51:14 +00:00
parent b2ede2665b
commit d7d4da5b80

View File

@@ -80,7 +80,7 @@ namespace libtorrent
un /= 10; un /= 10;
} while (un); } while (un);
if (n < 0) *--p = '-'; if (n < 0) *--p = '-';
std::memmove(&ret[0], p, &ret.back() - p); std::memmove(&ret[0], p, &ret.back() - p + 1);
return ret; return ret;
} }