mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-27 19:01:29 +08:00
small fix to previous string commit
This commit is contained in:
parent
916ddc2020
commit
90cb51110d
@ -140,6 +140,7 @@ namespace Blah
|
|||||||
m_heap_buffer.erase(new_length, s_len() - new_length);
|
m_heap_buffer.erase(new_length, s_len() - new_length);
|
||||||
else
|
else
|
||||||
m_stack_buffer.erase(new_length, s_len() - new_length);
|
m_stack_buffer.erase(new_length, s_len() - new_length);
|
||||||
|
s_ptr()[new_length - 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
StackString trim() const
|
StackString trim() const
|
||||||
@ -385,4 +386,4 @@ namespace std
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user