diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-22 21:52:29 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-22 21:52:29 -0700 |
| commit | fd475232ee12089f817f237cc755fe4444ec483b (patch) | |
| tree | 08bd147def56285c5420e852d0e3ff5dab7931e4 /src/string.h | |
| parent | fee3f00c6d8a855b4372a0367e0b3e9dcea76699 (diff) | |
Fixed va_list bug and strng_dup off by one
Diffstat (limited to 'src/string.h')
| -rw-r--r-- | src/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.h b/src/string.h index 9ff4978..ea4fd9b 100644 --- a/src/string.h +++ b/src/string.h @@ -40,8 +40,8 @@ static inline strng_view_t sv_from(strng_t const *string) { return (strng_view_t){ .string=(char*)((u8*)string+STRNG_BASE_POS), .start=0, - .end=string->len, - .max=string->len, + .end=string->len-1, + .max=string->len-1, }; } |