From ca98a84d68ea6f70112de57a68866b4bb55edbe5 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 24 Feb 2023 15:27:25 +0100 Subject: [PATCH] Update rtext.c --- src/rtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtext.c b/src/rtext.c index 7cce1eb87..f07261121 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1339,7 +1339,7 @@ int TextCopy(char *dst, const char *src) { int bytes = 0; - if (dst != NULL) + if ((src != NULL) && (dst != NULL)) { while (*src != '\0') {