fixed the bug about parsing space-filled strings in volume_desc
@@ -33,7 +33,7 @@ | ||
33 | 33 | if (i != rend) |
34 | 34 | return std::string(data, i.base()); |
35 | 35 | else |
36 | - return std::string(data, size); | |
36 | + return std::string(); | |
37 | 37 | } |
38 | 38 | |
39 | 39 | template<class String> |
@@ -61,7 +61,7 @@ | ||
61 | 61 | if (i != rend) |
62 | 62 | return charset::from_code_page(std::string(data, i.base()),0); |
63 | 63 | else |
64 | - return charset::from_code_page(std::string(data, size),0); | |
64 | + return std::wstring(); | |
65 | 65 | } |
66 | 66 | |
67 | 67 | template<> |