From: Harlan Stenn Date: Sat, 20 Mar 2004 06:20:11 +0000 (-0500) Subject: [Bug 293] - out of bounds array write: Nathan Hintz X-Git-Tag: NTP_4_2_3~174^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fd8d028643ec152cb6ad03c9d71fe63e8a7db2f;p=thirdparty%2Fntp.git [Bug 293] - out of bounds array write: Nathan Hintz bk: 405be29b_M-HhJUWv4ugnuMpGi77vQ --- diff --git a/util/ntp-keygen.c b/util/ntp-keygen.c index bf8d35471b..8ac3f359fb 100644 --- a/util/ntp-keygen.c +++ b/util/ntp-keygen.c @@ -714,7 +714,7 @@ gen_md5( } md5key[j] = (u_char)temp; } - md5key[16] = '\0'; + md5key[15] = '\0'; fprintf(str, "%2d MD5 %16s # MD5 key\n", i, md5key); }