summaryrefslogtreecommitdiff
path: root/src/glob/glob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glob/glob.c')
-rw-r--r--src/glob/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glob/glob.c b/src/glob/glob.c
index 3de2532e..e3b7525f 100644
--- a/src/glob/glob.c
+++ b/src/glob/glob.c
@@ -37,7 +37,7 @@ int glob(const char * restrict pattern, int flags, int (*errfunc) (const char *
}
char *path = malloc(strlen(pattern) + 1);
- strcpt(path, pattern);
+ strcpy(path, pattern);
for (i = 0; path[i]; i++) {
if (path[i] == '/') {