blob: 64c5df9b9741cfcf8d6982e6c2ba309c2011f152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-an,v 1.2 2006/05/29 13:51:20 tron Exp $
--- src/vpfopen.c.orig 2001-07-18 14:49:02.000000000 +0100
+++ src/vpfopen.c 2006-05-29 14:34:26.000000000 +0100
@@ -53,7 +53,7 @@
) {
vpinit(NULL);
for (i = 1; i < vpndirs; i++) {
- (void) sprintf(buf, "%s/%s", vpdirs[i], filename);
+ (void) snprintf(buf, sizeof(buf), "%s/%s", vpdirs[i], filename);
if ((returncode = myfopen(buf, type)) != NULL) {
break;
}
|