diff --git a/ui/UIEdit.cpp b/ui/UIEdit.cpp index d595519c0..30b9a43d3 100644 --- a/ui/UIEdit.cpp +++ b/ui/UIEdit.cpp @@ -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);