Browse Source

Update rtext.c

Ray 2 years ago
parent
commit
ca98a84d68
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rtext.c

+ 1 - 1
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')
         {