diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2009-05-23 15:14:45 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2009-05-23 15:14:45 +0200 |
commit | e016103fa25167594b9ff5d410019f114b7a36fb (patch) | |
tree | 0fd8b5b9c824f3611c24ed00dcbc2058579e15a1 /src/vpfopen.c | |
parent | 04b38c4c173cef3b1b12163f1cf5a9b3cef8cb4a (diff) |
New upstream release 15.7a, fixing CVE-2009-014815-7a-1
Diffstat (limited to 'src/vpfopen.c')
-rw-r--r-- | src/vpfopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpfopen.c b/src/vpfopen.c index bffbc20..005a9b0 100644 --- a/src/vpfopen.c +++ b/src/vpfopen.c @@ -37,7 +37,7 @@ #include "vp.h" #include "global.h" -static char const rcsid[] = "$Id: vpfopen.c,v 1.3 2001/03/27 14:09:19 broeker Exp $"; +static char const rcsid[] = "$Id: vpfopen.c,v 1.4 2009/04/10 13:39:23 broeker Exp $"; FILE * vpfopen(char *filename, char *type) @@ -53,7 +53,7 @@ vpfopen(char *filename, char *type) ) { 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; } |