ソースを参照

`LoadText()` tweak (#1113)

Guarantee string is zero-terminated
pull/1118/head
brankoku 5年前
committed by GitHub
コミット
572969d8b7
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      src/rlgl.h

+ 3
- 1
src/rlgl.h ファイルの表示

@ -3013,8 +3013,10 @@ char *LoadText(const char *fileName)
if (count < size)
{
text = RL_REALLOC(text, count + 1);
text[count] = '\0';
}
// zero-terminate the string
text[count] = '\0';
}
fclose(textFile);

読み込み中…
キャンセル
保存