From: Volker Lendecke Date: Sat, 6 Feb 2010 11:55:00 +0000 (+0100) Subject: pam_winbind: Use strchr instead of strstr for a single character X-Git-Tag: tdb-1.2.1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cb6f7ec1bdaa086e77fc865c2226151dcd602a7;p=thirdparty%2Fsamba.git pam_winbind: Use strchr instead of strstr for a single character --- diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c index 52a8daa1e7c..fcad15c0003 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) {