diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1147,7 +1147,10 @@ unsigned int TextLength(const char *text) { unsigned int length = 0; //strlen(text) - while (*text++) length++; + if (text != NULL) + { + while (*text++) length++; + } return length; } |
