Skip to content

Commit

Permalink
UIEdit: set char to 0 instead of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Lgt2x committed Apr 18, 2024
1 parent 6572274 commit 47f0f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/UIEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47f0f6e

Please sign in to comment.