kocotian.pl

My personal webpage sources
git clone git://git.kocotian.pl/kocotian.pl.git
Log | Files | Refs | README | LICENSE

commit 6fab71eb13b90630f65eea694fc921f549cf5b69
parent bd0283c4138f29047ede3854e2cfdda091ee739c
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 22 Mar 2021 22:29:37 +0100

String.length is strlen(length), not just pointer to a data

Diffstat:
Mstr.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/str.h b/str.h @@ -37,7 +37,7 @@ static String toString(char *s) { String ret; - ret.len = (ret.data = s); + ret.len = strlen(ret.data = s); return ret; }