util: Fix off-by-one error in message about overflow
authorMartin Schwenke <martin@meltin.net>
Mon, 1 Jul 2019 11:42:56 +0000 (21:42 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 5 Jul 2019 02:24:52 +0000 (02:24 +0000)
commit9d90ac352d409c6cda7598a4cfbb79c2b9f75754
tree20287be4adb1657a58821a0629c1e927db7731b6
parent5f7d82a88991d93d32f9cd1bbbfa3c3629e471c7
util: Fix off-by-one error in message about overflow

len includes space for the NUL character, so the calculation needs to
take the NUL character into account.

While touching this, drop unnecessary casts by updating format string
and update to modern debug macro.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul  5 02:24:52 UTC 2019 on sn-devel-184
lib/util/substitute.c