openbsd-ports/sysutils/cfengine/patches/patch-src_modes_c
sturm aec4c941c3 revive cfengine port
this is version 2.1.6, from and maintained by
William Yodlowsky <bsd at openbsd.rutgers.edu>
2004-06-17 11:21:42 +00:00

22 lines
837 B
Plaintext

$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;
}