pam_winbind: Use strchr instead of strstr for a single character
authorVolker Lendecke <vl@samba.org>
Sat, 6 Feb 2010 11:55:00 +0000 (12:55 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 6 Feb 2010 11:57:32 +0000 (12:57 +0100)
nsswitch/pam_winbind.c

index 52a8daa1e7c77123d91d5b9bcf7b0427d19567bd..fcad15c0003731bf30a2b926689bd9e995e01021 100644 (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) {