$OpenBSD: patch-src_modes_c,v 1.1 2004/06/17 11:21:43 sturm Exp $
--- src/modes.c.orig	2004-06-10 23:27:06.000000000 -0400
+++ src/modes.c	2004-06-10 23:17:28.000000000 -0400
@@ -189,7 +189,7 @@ void CheckModeState(enum modestate state
 {
 if ((stateA != wild) && (stateB != wild) && (stateA != stateB))
    {
-   sprintf(VBUFF,"Mode string constant (%c) used out of context",ch);
+   (void)snprintf(VBUFF,sizeof(VBUFF),"Mode string constant (%c) used out of context",ch);
    yyerror(VBUFF);
    }
 
@@ -221,7 +221,7 @@ switch(action)
              *m |= ((~value) & 07777 & affected);
              return;
    default:
-             sprintf(VBUFF,"Mode directive %c is unknown",action);
+             (void)snprintf(VBUFF,sizeof(VBUFF),"Mode directive %c is unknown",action);
              yyerror(VBUFF);
              return;
    }
