diff options
author | Michael Adam <obnox@samba.org> | 2011-12-06 00:58:24 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-12-06 10:45:42 +0100 |
commit | 2a69de6fde68d6e865e901beb7c65e6f4f16f0f8 (patch) | |
tree | e57760e345cc70c0c659d9e4439e8ab38bfbd4ba /source3 | |
parent | 116a150231d395a10233dcce4af814659322e40c (diff) | |
download | samba-2a69de6fde68d6e865e901beb7c65e6f4f16f0f8.tar.gz samba-2a69de6fde68d6e865e901beb7c65e6f4f16f0f8.tar.bz2 samba-2a69de6fde68d6e865e901beb7c65e6f4f16f0f8.zip |
s3:registry: replace use of rawmemchr by portable equivalent use of strchr.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 965d121649..378b20fc26 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -545,7 +545,7 @@ static bool tdb_data_is_cstr(TDB_DATA d) { if (tdb_data_is_empty(d) || (d.dptr[d.dsize-1] != '\0')) { return false; } - return rawmemchr(d.dptr, '\0') == &d.dptr[d.dsize-1]; + return strchr((char *)d.dptr, '\0') == (char *)&d.dptr[d.dsize-1]; } static bool upgrade_v2_to_v3_check_subkeylist(struct db_context *db, |