From f059b5da4cca2ab4d374a1f3bca8499a5d399032 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 28 May 2020 13:36:36 -0400
Subject: calloc call backwards
---
strbst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/strbst.c b/strbst.c
index 59d637e..d304605 100644
--- a/strbst.c
+++ b/strbst.c
@@ -14,7 +14,7 @@ int max(int a, int b) {
typedef char height;
strbst* newbst(void) {
- return calloc(sizeof(strbst),1);
+ return calloc(1,sizeof(strbst));
}
static strbstnode* newbstnode(char* ind, void* data) {
--
cgit