From 265f02295fbe804ba40153117fdc7374590810d8 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 13 Sep 2005 17:47:32 +0000 Subject: [PATCH] Fix al modo de apertura de archivo --- src/btree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btree.cpp b/src/btree.cpp index 5df88a2..8f18c66 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -6,7 +6,7 @@ BTree::BTree (const std::string &name, unsigned int block_size, bool create_new_ uchar *node; BTreeNodeHeader nh; - fp = fopen (name.c_str(), "wb"); + fp = fopen (name.c_str(), "wb+"); if (!fp) { /* TODO : mandar una exception ? */ return; -- 2.43.0