summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-23 16:48:35 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-23 16:48:35 -0400
commit2c14566bd4e3d8a61de4721f2fb2ae6b4a1fa866 (patch)
treedfc1941066f341d26ee9c5647ef6302685751180 /misc.c
parent86c7563cb69cd66b158eda43159b41276680306b (diff)
Fixed a typo in `dir_path_num()`.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 3e0b304..f9c2319 100644
--- a/misc.c
+++ b/misc.c
@@ -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;
}