diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-06 12:55:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-06 12:57:32 +0100 |
commit | 8cb6f7ec1bdaa086e77fc865c2226151dcd602a7 (patch) | |
tree | 73bb36ed5962a6079ecaf8388d5f29a261f4bf8a /nsswitch | |
parent | b93f07ef41fedf9cdb3f48fe77ed070c69ec3608 (diff) | |
download | samba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.tar.gz samba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.tar.bz2 samba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.zip |
pam_winbind: Use strchr instead of strstr for a single character
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/pam_winbind.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |