registry: Fix Coverity ID 1034916 Wrong sizeof argument
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2013 17:40:08 +0000 (18:40 +0100)
committerIra Cooper <ira@samba.org>
Mon, 11 Nov 2013 20:04:08 +0000 (21:04 +0100)
commit4e80a30daa16a6c0d0f1f96380fb213867f3ad5f
treedc7c201283b2c3e3d9d54ffc43ec31bfcd0a6dd9
parent0c8d5df5cadf59bb7833ccdd8f9c710c61d55cca
registry: Fix Coverity ID 1034916 Wrong sizeof argument

sizeof(data_val) is the size of the pointer. This might well be 8 bytes
where the string is only 4 bytes long

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
source4/lib/registry/tests/registry.c