本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
24
Wiki
活動
瀏覽代碼
[text] TextLength() security check
pull/1104/head
Ray
5 年之前
父節點
df4b55d657
當前提交
39e73ccc4d
共有
1 個檔案被更改
,包括
4 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
;
}
Write
Preview
Loading…
取消
儲存