openbsd-ports/databases/gdbm/patches/patch-gdbmreorg_c
2005-05-18 20:08:35 +00:00

13 lines
437 B
Plaintext

$OpenBSD: patch-gdbmreorg_c,v 1.1 2005/05/18 20:08:35 sturm Exp $
--- gdbmreorg.c.orig Mon Oct 7 20:38:26 2002
+++ gdbmreorg.c Mon Apr 4 23:25:52 2005
@@ -100,7 +100,7 @@ gdbm_reorganize (dbf)
gdbm_errno = GDBM_MALLOC_ERROR;
return -1;
}
- strcpy (&new_name[0], dbf->name);
+ strlcpy (new_name, dbf->name, len + 3);
new_name[len+2] = 0;
new_name[len+1] = '#';
while ( (len > 0) && new_name[len-1] != '/')