From b416a41f8b23aa77e76f0722237787ff448e9f42 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 17 Jun 2024 17:55:45 +0100 Subject: [PATCH] Fix minor spelling errors --- src/network/core/address.h | 2 +- src/string_func.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/core/address.h b/src/network/core/address.h index 3cd4bb50f1..c44c544af7 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -185,7 +185,7 @@ public: /** * The use of a struct is so that when used as an argument to /seprintf/etc, the buffer lives * on the stack with a lifetime which lasts until the end of the statement. - * This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then nee to be freed. + * This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then need to be freed. */ struct NetworkAddressDumper { const char *GetAddressAsString(NetworkAddress *addr, bool with_family = true); diff --git a/src/string_func.h b/src/string_func.h index 9b0c405ca4..a1d123d072 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -309,7 +309,7 @@ char *strcasestr(const char *haystack, const char *needle); /** * The use of a struct is so that when used as an argument to seprintf/etc, the buffer lives * on the stack with a lifetime which lasts until the end of the statement. - * This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then nee to be freed. + * This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then need to be freed. */ struct StrErrorDumper { const char *Get(int errornum);