Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Fuzzer/FuzzerIOWindows.cpp | ||
---|---|---|
144 | Instead of managing memory yourself, I would just use another string as the non-const buffer. PathRemoveFileSpace may replace one of the characters with '\0', so all you have to do is resize the result. std::string result = FileName; PathRemoveFileSpecA(&result[0]); result.resize(std::strlen(result.c_str()); return result; |
Comment Actions
Abandon this revision because I reimplemented DirName in: https://reviews.llvm.org/D27579
Instead of managing memory yourself, I would just use another string as the non-const buffer. PathRemoveFileSpace may replace one of the characters with '\0', so all you have to do is resize the result.