summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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')
{