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);