From 8cb6f7ec1bdaa086e77fc865c2226151dcd602a7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 Feb 2010 12:55:00 +0100 Subject: pam_winbind: Use strchr instead of strstr for a single character --- nsswitch/pam_winbind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nsswitch/pam_winbind.c') diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 52a8daa1e7..fcad15c000 100644 --- a/nsswitch/pam_winbind.c +++ b/nsswitch/pam_winbind.c @@ -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) { -- cgit