summaryrefslogtreecommitdiffhomepage
path: root/src/rtext.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-24 15:27:25 +0100
committerRay <[email protected]>2023-02-24 15:27:25 +0100
commitca98a84d68ea6f70112de57a68866b4bb55edbe5 (patch)
tree7cbecd0d84e394bffc6f6e102cf51bc6933cf8d8 /src/rtext.c
parent110eab56a701bbd65f8762cbf6d11ca4e6925fbd (diff)
downloadraylib-ca98a84d68ea6f70112de57a68866b4bb55edbe5.tar.gz
raylib-ca98a84d68ea6f70112de57a68866b4bb55edbe5.zip
Update rtext.c
Diffstat (limited to 'src/rtext.c')
-rw-r--r--src/rtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtext.c b/src/rtext.c
index 7cce1eb8..f0726112 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')
{