registry: Fix Coverity ID 1034918 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)
commit55b0a16e9b08cb4bf5cf32307009b889b4288f3a
treea10f1c4b79e97ece03d83157711b043635f4f850
parentba370ae630e1f35cd20d6419100b5e0987382cfc
registry: Fix Coverity ID 1034918 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