aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorrbxnk <9140716+rbxnk@users.noreply.github.com>2020-09-12 15:50:57 -0700
committerGitHub <noreply@github.com>2020-09-12 15:50:57 -0700
commit7eed4d176e6515051874c24aec4652a9cd3b126b (patch)
tree285dfb298ee3cc956eb933bf6dd541c64fd23b58 /util
parent81d21b4cd19f45bc68cea8a34facbb888d81d2aa (diff)
fixing sdtx_putr
Diffstat (limited to 'util')
-rw-r--r--util/sokol_debugtext.h2
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;
}