From 47f0f6e443f5fd1b32cd9e351f2254001c4d09cf Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Thu, 18 Apr 2024 19:14:25 +0200 Subject: [PATCH] UIEdit: set char to 0 instead of NULL --- ui/UIEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/UIEdit.cpp b/ui/UIEdit.cpp index d595519c..30b9a43d 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);