Remove null byte from string length
I noticed an extra null when trying to grep dfhack.run ls output. std::string manages null byte at end(). Pre C++11 didn't require null termination for std::string but C++11 add the null termination to make c_str() and data() truely const. It is undefined behavior to modify the internal null termination but this modification sets the null to null.develop
parent
1a4440859c
commit
7a2245c2fa
Loading…
Reference in New Issue