Commit f2a12479 authored by Rusty Russell's avatar Rusty Russell

tdb2: fix arithmetic on void * pointer.

parent 148c0948
......@@ -342,7 +342,7 @@ enum TDB_ERROR tdb_write_off(struct tdb_context *tdb,
static void *_tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset,
tdb_len_t len, unsigned int prefix)
{
void *buf;
unsigned char *buf;
enum TDB_ERROR ecode;
/* some systems don't like zero length malloc */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment