使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Archivist
/
raylib-src
镜像自地址
https://github.com/raysan5/raylib
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
24
百科
动态
浏览代码
[text] TextLength() security check
pull/1104/head
Ray
5 年前
父节点
df4b55d657
当前提交
39e73ccc4d
共有
1 个文件被更改
,包括
4 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+4
-1
src/text.c
+ 4
- 1
src/text.c
查看文件
@ -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
;
}
撰写
预览
正在加载...
取消
保存