aboutsummaryrefslogtreecommitdiff
path: root/src/gb
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-11-19 16:45:12 +0000
committergingerBill <bill@gingerbill.org>2017-11-19 16:45:12 +0000
commit74aaa3408f7f8d3874c68a20c3c3edf338ec8dfd (patch)
tree67a4d7031efb798c82b06f2b5d2527842054d48a /src/gb
parent2a5beee88c439fd3b7b9952f3f97341c693e84c5 (diff)
Fix debug symbol generation
Diffstat (limited to 'src/gb')
-rw-r--r--src/gb/gb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gb.h b/src/gb/gb.h
index 3e3f147dc..5d03aed36 100644
--- a/src/gb/gb.h
+++ b/src/gb/gb.h
@@ -6614,7 +6614,7 @@ gbString gb_string_append_fmt(gbString str, char const *fmt, ...) {
char buf[4096] = {0};
va_list va;
va_start(va, fmt);
- res = gb_snprintf_va(str, gb_count_of(buf)-1, fmt, va);
+ res = gb_snprintf_va(buf, gb_count_of(buf)-1, fmt, va)-1;
va_end(va);
return gb_string_append_length(str, buf, res);
}