summaryrefslogtreecommitdiff
path: root/src/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.h')
-rw-r--r--src/string.h4
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,
};
}