$NetBSD: patch-ai,v 1.3 1998/11/04 23:43:39 tron Exp $ --- scp.c.orig Wed Jul 8 18:40:38 1998 +++ scp.c Thu Nov 5 00:31:23 1998 @@ -332,7 +332,7 @@ char buf[1024]; va_start(ap, fmt); - vsprintf(buf, fmt, ap); + vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); fprintf(stderr, "%s\n", buf); exit(255);