$NetBSD: patch-ab,v 1.1.1.1 2006/05/08 21:58:31 adrianp Exp $

# fix a format string vulnerability (DSA 852-1)

--- src/main.c.orig	2005-11-03 15:41:01.000000000 +0000
+++ src/main.c
@@ -849,7 +849,7 @@ static int ParseBannerAndCapability( cha
 	exit( 1 );
     }
     
-    sprintf( DestBuf, CP );
+    sprintf( DestBuf, "%s", CP );
     
     /*
      * initially assume that the server doesn't support UNSELECT.
