~sircmpwn/scdoc

8b0142c229ac9f9e01e207f0c25125eebf254ee7 — Bor Grošelj Simić a month ago 1645e3c
string.c: swap calloc arguments
1 files changed, 1 insertions(+), 1 deletions(-)

M src/string.c
M src/string.c => src/string.c +1 -1
@@ 16,7 16,7 @@ static int ensure_capacity(struct str *str, size_t len) {
}

struct str *str_create() {
	struct str *str = calloc(sizeof(struct str), 1);
	struct str *str = calloc(1, sizeof(struct str));
	str->str = malloc(16);
	str->size = 16;
	str->len = 0;