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
|
@ -434,7 +434,7 @@ bool config_read_line(struct config_ctx *ctx, const char *input)
|
||||||
char *line, *comment;
|
char *line, *comment;
|
||||||
bool ret = true;
|
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);
|
comment = strchr(input, COMMENT_CHAR);
|
||||||
if (comment)
|
if (comment)
|
||||||
len = comment - input;
|
len = comment - input;
|
||||||
|
|
Loading…
Reference in a new issue