diff options
author | 3gg <3gg@shellblade.net> | 2025-06-29 11:13:14 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-06-29 11:13:14 -0700 |
commit | 0be996419b77a2e58ba3977519e77b8d11d27189 (patch) | |
tree | 6ee5f9b692de718bdedcfb3580364ed1fba3581a /cstring/include | |
parent | 8e245a6c9a8287178b2d0853dec24f442c52ce95 (diff) |
Fix
Diffstat (limited to 'cstring/include')
-rw-r--r-- | cstring/include/cstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cstring/include/cstring.h b/cstring/include/cstring.h index 3e693e1..c24cd35 100644 --- a/cstring/include/cstring.h +++ b/cstring/include/cstring.h | |||
@@ -75,7 +75,7 @@ static inline void cstring_copy(char* dst, const char* src, size_t count) { | |||
75 | static inline void STRING##_append_cstr_len( \ | 75 | static inline void STRING##_append_cstr_len( \ |
76 | STRING* a, const char* b, const size_t b_length) { \ | 76 | STRING* a, const char* b, const size_t b_length) { \ |
77 | ASSERT(a->length + b_length + 1 <= SIZE); \ | 77 | ASSERT(a->length + b_length + 1 <= SIZE); \ |
78 | cstring_copy(a->str + a->length, b, SIZE - a->length); \ | 78 | cstring_copy(a->str + a->length, b, b_length); \ |
79 | a->length += b_length; \ | 79 | a->length += b_length; \ |
80 | } \ | 80 | } \ |
81 | \ | 81 | \ |