$NetBSD: patch-ah,v 1.3 1998/11/04 23:43:39 tron Exp $ --- packet.c.orig Wed Jul 8 18:40:37 1998 +++ packet.c Thu Nov 5 00:31:23 1998 @@ -693,7 +693,7 @@ va_list args; va_start(args, fmt); - vsprintf(buf, fmt, args); + vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); packet_start(SSH_MSG_DEBUG); @@ -719,7 +719,7 @@ /* Format the message. Note that the caller must make sure the message is of limited size. */ va_start(args, fmt); - vsprintf(buf, fmt, args); + vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); /* Send the disconnect message to the other side, and wait for it to get