From dd2b568721dd6900ce0daa5fc171ba71045066ca Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 7 Sep 2023 15:57:53 +1200 Subject: [PATCH] lib:charset: Fix code spelling Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- lib/util/charset/charset.h | 4 ++-- lib/util/charset/util_str.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h index 4eaee1bbb7c..941a8be2146 100644 --- a/lib/util/charset/charset.h +++ b/lib/util/charset/charset.h @@ -119,8 +119,8 @@ size_t utf16_len_n(const void *src, size_t n); char *strchr_m(const char *s, char c); /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, diff --git a/lib/util/charset/util_str.c b/lib/util/charset/util_str.c index 5d415f097e4..1650c9b8232 100644 --- a/lib/util/charset/util_str.c +++ b/lib/util/charset/util_str.c @@ -200,8 +200,8 @@ _PUBLIC_ bool strcsequal(const char *s1,const char *s2) /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, @@ -287,8 +287,8 @@ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, /** * Calculate the number of units (8 or 16-bit, depending on the - * destination charset), that would be needed to convert the input - * string which is expected to be in in src_charset encoding to the + * destination charset) that would be needed to convert the input + * string, which is expected to be in src_charset encoding, to the * destination charset (which should be a unicode charset). */ _PUBLIC_ size_t strlen_m_ext(const char *s, charset_t src_charset, charset_t dst_charset) @@ -324,7 +324,7 @@ _PUBLIC_ size_t strlen_m_ext_term_null(const char *s, /** * Calculate the number of 16-bit units that would be needed to convert - * the input string which is expected to be in CH_UNIX encoding to UTF16. + * the input string, which is expected to be in CH_UNIX encoding, to UTF16. * * This will be the same as the number of bytes in a string for single * byte strings, but will be different for multibyte.