use snprintf

This commit is contained in:
Omar Polo 2024-06-10 08:20:35 +00:00
parent 60c2f58b75
commit 62aa1935cc
1 changed files with 1 additions and 2 deletions

View File

@ -813,8 +813,7 @@ open_dir(struct client *c)
return;
}
strlcpy(path, c->iri.path, sizeof(path));
strlcat(path, index, sizeof(path));
snprintf(path, sizeof(path), "%s%s", c->iri.path, index);
close(c->pfd);
c->pfd = fd;