lib: replace: snprintf - Fix length calculation for hex/octal 64-bit values.
authorLorinczy Zsigmond <lzsiga@freemail.c3.hu>
Thu, 2 Jun 2016 21:54:05 +0000 (14:54 -0700)
committerMichael Adam <obnox@samba.org>
Fri, 3 Jun 2016 01:48:58 +0000 (03:48 +0200)
commit8814b2556583e1f8965e8bf5a93438d46e8d43e6
tree58637f2e165eb1ca7003bb00d2d6b654b4af8a69
parentb929008dc6f3f8ffeb376d87d30d2101567f75e9
lib: replace: snprintf - Fix length calculation for hex/octal 64-bit values.

Prevents truncation due to buffer size being too small.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11947

Signed-off-by: Lorinczy Zsigmond <lzsiga@freemail.c3.hu>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  3 03:48:58 CEST 2016 on sn-devel-144
lib/replace/snprintf.c