]> git.ipfire.org Git - thirdparty/samba.git/commit
C26: use strchr_m/strrchr_m/strstr_m for multibyte-safe search
authorStefan Metzmacher <metze@samba.org>
Mon, 30 Mar 2026 15:17:47 +0000 (17:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 May 2026 17:25:33 +0000 (17:25 +0000)
commitb5fd955ad5bf63b537076a9ef898c1954e767aad
treeafba3fe39b17754f086fe7e66e7d2f0a9536b5d3
parentcb690b465adef7dc8cfccd4c1b0c1ea826c0a2ff
C26: use strchr_m/strrchr_m/strstr_m for multibyte-safe search

Replace strchr/strrchr/strstr with their multibyte-aware
Samba equivalents where appropriate. These wrappers return
char * regardless of input constness.

Pair-Programmed-With: Andreas Schneider <asn@samba.org>

BUG: https://bugzilla.samba.org/show_bug.cgi?id=16006

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/printer_driver/printer_driver.c
nsswitch/libwbclient/tests/wbclient.c
source3/libsmb/libsmb_path.c
source3/rpc_server/rpc_host.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/utils/net_rpc.c
source4/nbt_server/wins/winsdb.c
source4/torture/krb5/kdc-canon-heimdal.c