1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

pam_winbind: Use strchr instead of strstr for a single character

This commit is contained in:
Volker Lendecke 2010-02-06 12:55:00 +01:00
parent b93f07ef41
commit 8cb6f7ec1b

View File

@ -1144,7 +1144,7 @@ static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx,
}
search_location = name_list;
while ((comma = strstr(search_location, ",")) != NULL) {
while ((comma = strchr(search_location, ',')) != NULL) {
current_name = strndup(search_location,
comma - search_location);
if (NULL == current_name) {