debug: In dbghdrclass, don't call strlen repeatedly
commit06a0b1c85150d68bcbb6d6f81a66bf3976e0223e
authorVolker Lendecke <vl@samba.org>
Wed, 30 Jul 2014 09:22:21 +0000 (30 09:22 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 31 Jul 2014 16:49:47 +0000 (31 18:49 +0200)
treefb780d80b876acd8b2fedac673bce1ab6a93c0f5
parent200d94e5636d1852ae3c435d9a8335f655b95c27
debug: In dbghdrclass, don't call strlen repeatedly

Also properly protect against header_str overflow

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/util/debug.c