The size of portstr is too small to print an integer. Instead just let snprintf do the work. This fixes building with GCC 7.1 Based on feedback by Jeffrey Altman BUG: https://bugzilla.samba.org/show_bug.cgi?id=12930 (Inspired by Samba commit abd74c3ba5e3ee3f5320bff6ed7dff4fbcb79373) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
28 KiB
28 KiB