b2b748ca0c
from rohee@
13 lines
424 B
Plaintext
13 lines
424 B
Plaintext
$OpenBSD: patch-gdbmopen_c,v 1.1 2005/05/18 20:08:35 sturm Exp $
|
|
--- gdbmopen.c.orig Mon Apr 4 23:23:09 2005
|
|
+++ gdbmopen.c Mon Apr 4 23:23:37 2005
|
|
@@ -100,7 +100,7 @@ gdbm_open (file, block_size, flags, mode
|
|
gdbm_errno = GDBM_MALLOC_ERROR;
|
|
return NULL;
|
|
}
|
|
- strcpy (dbf->name, file);
|
|
+ strlcpy (dbf->name, file, len + 1);
|
|
|
|
/* Initialize the fatal error routine. */
|
|
dbf->fatal_err = fatal_func;
|