openbsd-ports/sysutils/radmind/patches/patch-list_c
pvalchev 82806daf7d Update to radmind-1.4.0
from maintainer William Yodlowsky <bsd@openbsd.rutgers.edu>
2005-01-26 00:33:30 +00:00

13 lines
423 B
Plaintext

$OpenBSD: patch-list_c,v 1.1 2005/01/26 00:33:30 pvalchev Exp $
--- list.c.orig Thu Jan 13 09:57:58 2005
+++ list.c Thu Jan 13 09:59:15 2005
@@ -30,7 +30,7 @@ _list_create_node( char *path )
return( NULL );
}
memset( new_node, 0, sizeof( struct node ));
- sprintf( new_node->n_path, "%s", path );
+ (void)snprintf( new_node->n_path, sizeof( new_node->n_path ), "%s", path );
return( new_node );
}