diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-07 15:07:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:54 -0500 |
commit | 71921605995fa95d84301534760a6bc2db3fa74b (patch) | |
tree | 58676f522882b36e188e2e689b10d6e63f447037 /source3/nsswitch | |
parent | b1e866c3b7c2ef92599b5801ac8c174cfd404319 (diff) | |
download | samba-71921605995fa95d84301534760a6bc2db3fa74b.tar.gz samba-71921605995fa95d84301534760a6bc2db3fa74b.tar.bz2 samba-71921605995fa95d84301534760a6bc2db3fa74b.zip |
r22747: Fix some C++ warnings
(This used to be commit a66a04e9f11f6c4462f2b56b447bae4eca7b177c)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index ed0d4131f6..8464b41deb 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -2318,7 +2318,7 @@ void cache_store_response(pid_t pid, struct winbindd_response *response) fstr_sprintf(key_str, "DE/%d", pid); if (tdb_store(wcache->tdb, string_tdb_data(key_str), - make_tdb_data(response->extra_data.data, + make_tdb_data((uint8 *)response->extra_data.data, response->length - sizeof(*response)), TDB_REPLACE) == 0) return; @@ -3193,7 +3193,7 @@ static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_D char *keystr; int ret; - keystr = SMB_MALLOC(kbuf.dsize+1); + keystr = SMB_MALLOC_ARRAY(char, kbuf.dsize+1); if (!keystr) { return 1; } |