summaryrefslogtreecommitdiff
path: root/security/ssh/patches/patch-ai
blob: fc25e8162d6427b25b03e13bbcd93cea9417a306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$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);