commit 696c1e07ef2ef69da9050c37c346f6ec62fbeeb8 parent 2bd17f0fc119a96101741081d04a0d236bc96861 Author: sin <sin@2f30.org> Date: Fri, 26 Apr 2019 16:02:15 +0100 Fix allocation size Diffstat:
M | snap.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snap.c b/snap.c @@ -148,7 +148,7 @@ sopen(char *path, int flags, int mode, struct sctx **sctx) if (fd < 0) return -1; - *sctx = calloc(1, sizeof(*sctx)); + *sctx = calloc(1, sizeof(**sctx)); if (*sctx == NULL) { close(fd); return -1;