git » nmdb » commit 3011944

Allow large values when doing a get in D bindings.

author Alberto Bertogli
2007-04-29 07:20:26 UTC
committer Alberto Bertogli
2007-04-29 07:20:26 UTC
parent 913e72ae29079f5318b20a4e1e1c5c2d3e0a9ac3

Allow large values when doing a get in D bindings.

bindings/d/nmdb.d +1 -1

diff --git a/bindings/d/nmdb.d b/bindings/d/nmdb.d
index e31da75..3706133 100644
--- a/bindings/d/nmdb.d
+++ b/bindings/d/nmdb.d
@@ -55,7 +55,7 @@ class DB
 	{
 		ptrdiff_t size;
 		ubyte* k = cast(ubyte *) key.ptr;
-		auto v = new char[256];
+		auto v = new char[64 * 1024];
 
 		if (mode == MODE_NORMAL || mode == MODE_SYNC) {
 			size = nmdb_get(db, k, key.length,