Author: obnox Date: 2007-05-15 09:38:42 +0000 (Tue, 15 May 2007) New Revision: 22890
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22890 Log: Fix cast. (In 3_0_26, TDB_DATA.dptr is still char, not unsigned char.) Modified: branches/SAMBA_3_0_26/source/lib/dbwrap_tdb.c Changeset: Modified: branches/SAMBA_3_0_26/source/lib/dbwrap_tdb.c =================================================================== --- branches/SAMBA_3_0_26/source/lib/dbwrap_tdb.c 2007-05-15 09:17:58 UTC (rev 22889) +++ branches/SAMBA_3_0_26/source/lib/dbwrap_tdb.c 2007-05-15 09:38:42 UTC (rev 22890) @@ -58,7 +58,7 @@ } result->key.dsize = key.dsize; - result->key.dptr = (uint8 *)talloc_memdup(result, key.dptr, key.dsize); + result->key.dptr = (char *)talloc_memdup(result, key.dptr, key.dsize); if (result->key.dptr == NULL) { DEBUG(0, ("talloc failed\n")); TALLOC_FREE(result); @@ -93,7 +93,7 @@ } result->value.dsize = value.dsize; - result->value.dptr = (uint8 *)talloc_memdup(result, value.dptr, + result->value.dptr = (char *)talloc_memdup(result, value.dptr, value.dsize); if (result->value.dptr == NULL) { DEBUG(3, ("talloc failed\n"));
