openbsd-ports/sysutils/cfengine/patches/patch-src_process_c
2005-07-21 15:16:46 +00:00

13 lines
485 B
Plaintext

$OpenBSD: patch-src_process_c,v 1.2 2005/07/21 15:16:47 aanriot Exp $
--- src/process.c.orig Tue Feb 8 06:50:02 2005
+++ src/process.c Fri Jul 15 12:24:01 2005
@@ -414,7 +414,7 @@ for (ip = procdata; ip != NULL; ip=ip->n
if (pp->action == 'm')
{
- sprintf(saveuid,"%d",pid);
+ (void)snprintf(saveuid,sizeof(saveuid),"%d",pid);
PrependItem(killlist,saveuid,"");
}
else