mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
UIEdit: set char to 0 instead of NULL
This commit is contained in:
parent
6572274883
commit
47f0f6e443
@ -199,7 +199,7 @@ void UIEdit::SetText(char *text) {
|
||||
void UIEdit::GetText(char *buffer, int len) {
|
||||
// ASSERT(strlen(m_TextBuf) < (unsigned)len);
|
||||
if (!m_TextBuf) {
|
||||
buffer[0] = NULL;
|
||||
buffer[0] = 0;
|
||||
return;
|
||||
}
|
||||
strncpy(buffer, m_TextBuf, len - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user