diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-25 11:17:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:13 -0500 |
commit | 368802bc867f544355b5a8c4bc5e4b6ab47dd408 (patch) | |
tree | 70ce3fdc883aeebb1194a24d7b4f8041f76dcea9 /source4/lib/registry | |
parent | 5abd7f8f5f04b2c2a66e97974049fc65b11df9e0 (diff) | |
download | samba-368802bc867f544355b5a8c4bc5e4b6ab47dd408.tar.gz samba-368802bc867f544355b5a8c4bc5e4b6ab47dd408.tar.bz2 samba-368802bc867f544355b5a8c4bc5e4b6ab47dd408.zip |
r2623: don't do pointer arithmetic on void*, as it doesn't work with non-GNU compilers
(This used to be commit c2be7b696ccb338df06a5212ed1f7b78e4c116c2)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/common/reg_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/common/reg_util.c b/source4/lib/registry/common/reg_util.c index 21c925deab..c7354fe909 100644 --- a/source4/lib/registry/common/reg_util.c +++ b/source4/lib/registry/common/reg_util.c @@ -54,7 +54,7 @@ char *reg_val_data_string(TALLOC_CTX *mem_ctx, struct registry_value *v) asciip = ret; for (i=0; i<v->data_len; i++) { int str_rem = v->data_len * 3 - (asciip - ret); - asciip += snprintf(asciip, str_rem, "%02x", *(uint8_t *)(v->data_blk+i)); + asciip += snprintf(asciip, str_rem, "%02x", *(uint8_t *)(((char *)v->data_blk)+i)); if (i < v->data_len && str_rem > 0) *asciip = ' '; asciip++; } |