From 07b3454c5da936c9b3d372b3e5ccf08ec8314d21 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 23 Jun 2021 16:49:38 -0400 Subject: Fixed another typo in `dir_path_num()`. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.c b/misc.c index f9c2319..dd00480 100644 --- a/misc.c +++ b/misc.c @@ -78,7 +78,7 @@ char *dir_path_num(const char *root, int num) { /* Get the length of the path. */ int len = snprintf(NULL, 0, "%s/%i", root, num); /* Create the directory path. */ - char *dir = calloc(len+1, sizeof(char)) + char *dir = calloc(len+1, sizeof(char)); sprintf(dir, "%s/%i", root, num); return dir; } -- cgit v1.2.3-13-gbd6f