diff options
Diffstat (limited to 'autoreload.c')
-rw-r--r-- | autoreload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoreload.c b/autoreload.c index d51e008..47751d5 100644 --- a/autoreload.c +++ b/autoreload.c @@ -79,7 +79,7 @@ void arl_setup(arl_t *arl, const char *filepath) if (base != NULL) { arl->filename[++base - filepath] = '\0'; add_watch(arl->fd, &arl->wd_dir, arl->filename, IN_CREATE | IN_MOVED_TO); - strcpy(arl->filename, base); + strcpy(arl->filename, base); /* NOLINT: basename will always be shorter than fullpath */ } } |