summaryrefslogtreecommitdiff
path: root/src/glob
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-25 21:08:46 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-25 21:08:46 -0500
commitf26bf1396557e4bc739d6a7703099f75bfe2fb99 (patch)
tree1ac1d21defcccac8032590aa6bc145b9d8877016 /src/glob
parent21f6ab11f8554328772ac992ced6947b2b67df65 (diff)
fix warning from -Wall
Diffstat (limited to 'src/glob')
-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] == '/') {