]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg: fix misspelling of strchrnul in comment
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 21 Jun 2018 23:39:25 +0000 (01:39 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 22 Jun 2018 02:09:39 +0000 (04:09 +0200)
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/config.c

index b07aa46a532994fa9e7f3615d9f83c3829506443..8e327bee676feadb681db801c50aaf2587a73a8a 100644 (file)
@@ -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;