wg: fix misspelling of strchrnul in comment
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ef54cbf568
commit
a54a133500
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ bool config_read_line(struct config_ctx *ctx, const char *input)
|
|||
char *line, *comment;
|
||||
bool ret = true;
|
||||
|
||||
/* This is what strchrnull is for, but that isn't portable. */
|
||||
/* This is what strchrnul is for, but that isn't portable. */
|
||||
comment = strchr(input, COMMENT_CHAR);
|
||||
if (comment)
|
||||
len = comment - input;
|
||||
|
|
Loading…
Reference in a new issue