Skip to content

Commit

Permalink
docs(sockctl): fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink committed Mar 13, 2023
1 parent 9449abd commit 35d1493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sockctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static int cleanup_tmp_domain_socket_path(const char *socket_path) {
}

// need to make a non-const copy of path since dirname() may change
// stirng contents
// string contents
char path[PATH_MAX];
path[PATH_MAX - 1] = '\0'; // ensure string is always NUL terminated
strncpy(path, socket_path, PATH_MAX - 1);
Expand Down

0 comments on commit 35d1493

Please sign in to comment.