cstring

Lightweight string library for C
git clone git://git.christosmarg.xyz/cstring.git
Log | Files | Refs | README | LICENSE

commit 719dca735afc8c14364310d23c5e391f31005ac8
parent d8ef8bfb7516d14d9e6f5545807a5f71fe470189
Author: Christos Margiolis <christos@margiolis.net>
Date:   Mon, 31 Aug 2020 06:00:13 +0300

minor changes

Diffstat:
Mcstring.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cstring.c b/cstring.c @@ -142,7 +142,7 @@ cstr_resize(cstring *cs, size_t newcapacity) memcpy(tmp, cs->str, cs->len + 1); free(cs->str); tmp[cs->len] = '\0'; - cs->str = tmp; + cs->str = tmp; cs->capacity = newcapacity; } }