diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-23 16:48:35 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-23 16:48:35 -0400 |
commit | 2c14566bd4e3d8a61de4721f2fb2ae6b4a1fa866 (patch) | |
tree | dfc1941066f341d26ee9c5647ef6302685751180 /misc.c | |
parent | 86c7563cb69cd66b158eda43159b41276680306b (diff) |
Fixed a typo in `dir_path_num()`.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ char *dir_path_num(const char *root, int num) { int len = snprintf(NULL, 0, "%s/%i", root, num); /* Create the directory path. */ char *dir = calloc(len+1, sizeof(char)) - sprintf(pr_dir, "%s/%i", root, num); + sprintf(dir, "%s/%i", root, num); return dir; } |