diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-23 16:49:38 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-23 16:49:38 -0400 |
commit | 07b3454c5da936c9b3d372b3e5ccf08ec8314d21 (patch) | |
tree | 32492ba3c86fb6eff1638f3c85b0a798c8276dbf /misc.c | |
parent | 2c14566bd4e3d8a61de4721f2fb2ae6b4a1fa866 (diff) |
Fixed another typo in `dir_path_num()`.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |