]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:ldap: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 3 Aug 2023 13:43:00 +0000 (15:43 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 21:45:30 +0000 (21:45 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/ldap/ldap_sort.c

index 936015914c072a7fd6bf4f2011e96b159e5c4ab8..b28bd95952bad68a693f0c92536fce6899bc0431 100644 (file)
@@ -115,9 +115,9 @@ bool torture_ldap_sort(struct torture_context *torture)
                                while( *(cur_txt) && *(prev_txt) && cur_len && prev_len ) {
                                        j = toupper_m(*(prev_txt))-toupper_m(*(cur_txt));
                                        if ( j > 0 ) {
-                                               /* Just check that is not due to trailling white space in prev_txt
+                                               /* Just check that is not due to trailing white space in prev_txt
                                                 * That is to say *cur_txt = 0 and prev_txt = 20 */
-                                               /* Remove trailling whitespace */
+                                               /* Remove trailing whitespace */
                                                while ( *prev_txt == ' ' ) { prev_txt++; prev_len--;}
                                                while ( *cur_txt == ' ' ) { cur_txt++; cur_len--;}
                                                /* Now that potential whitespace are removed if we are at the end