diff options
| author | rbxnk <9140716+rbxnk@users.noreply.github.com> | 2020-09-12 15:50:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 15:50:57 -0700 |
| commit | 7eed4d176e6515051874c24aec4652a9cd3b126b (patch) | |
| tree | 285dfb298ee3cc956eb933bf6dd541c64fd23b58 /util | |
| parent | 81d21b4cd19f45bc68cea8a34facbb888d81d2aa (diff) | |
fixing sdtx_putr
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_debugtext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h index 4aea015a..90c15cb5 100644 --- a/util/sokol_debugtext.h +++ b/util/sokol_debugtext.h @@ -4113,7 +4113,7 @@ SOKOL_API_DECL void sdtx_putr(const char* str, int len) { _sdtx_context_t* ctx = _sdtx.cur_ctx; if (ctx) { for (int i = 0; i < len; i++) { - char chr = str[len]; + char chr = str[i]; if (0 == chr) { break; } |