This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
[text] TextLength() security check
pull/1104/head
Ray
5 years ago
parent
df4b55d657
commit
39e73ccc4d
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/text.c
+ 4
- 1
src/text.c
View File
@ -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
;
}
Write
Preview
Loading…
Cancel
Save