openbsd-ports/databases/db/v4/patches/patch-env_env_open_c

31 lines
1.1 KiB
Plaintext

$OpenBSD: patch-env_env_open_c,v 1.1.1.1 2003/12/08 17:37:52 sturm Exp $
--- env/env_open.c.orig 2003-12-04 13:59:29.000000000 +0100
+++ env/env_open.c 2003-12-04 13:59:44.000000000 +0100
@@ -906,7 +906,7 @@ illegal: __db_err(dbenv, "mis-formatted
return (dbenv->set_data_dir(dbenv, value));
if (!strcasecmp(name, "set_flags")) {
- if (sscanf(value, "%40s %c", arg, &v4) != 1)
+ if (sscanf(value, "%39s %c", arg, &v4) != 1)
goto badarg;
if (!strcasecmp(value, "db_cdb_alldb"))
@@ -961,7 +961,7 @@ illegal: __db_err(dbenv, "mis-formatted
return (dbenv->set_lg_dir(dbenv, value));
if (!strcasecmp(name, "set_lk_detect")) {
- if (sscanf(value, "%40s %c", arg, &v4) != 1)
+ if (sscanf(value, "%39s %c", arg, &v4) != 1)
goto badarg;
if (!strcasecmp(value, "db_lock_default"))
flags = DB_LOCK_DEFAULT;
@@ -1067,7 +1067,7 @@ illegal: __db_err(dbenv, "mis-formatted
}
if (!strcasecmp(name, "set_verbose")) {
- if (sscanf(value, "%40s %c", arg, &v4) != 1)
+ if (sscanf(value, "%39s %c", arg, &v4) != 1)
goto badarg;
if (!strcasecmp(value, "db_verb_chkpoint"))