]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
ipc: remove extra space
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 10 May 2020 05:20:03 +0000 (23:20 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 10 May 2020 07:28:57 +0000 (01:28 -0600)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc.c

index b9d25324c94b4ec6190c9087e46f7e817d37d899..8c59ef1926ee9c9dc05dc6bb56a87f5e8e3cabd4 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -62,7 +62,7 @@ static int string_list_add(struct string_list *list, const char *str)
                char *new_buffer;
                size_t new_cap = list->cap * 2;
 
-               if (new_cap <  list->len +len + 1)
+               if (new_cap < list->len + len + 1)
                        new_cap = list->len + len + 1;
                new_buffer = realloc(list->buffer, new_cap);
                if (!new_buffer)