summaryrefslogtreecommitdiff
path: root/src/file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/file.cc')
-rw-r--r--src/file.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/file.cc b/src/file.cc
index 9279015..7c4725d 100644
--- a/src/file.cc
+++ b/src/file.cc
@@ -41,6 +41,14 @@
#include <netinet/in.h>
#include <stdlib.h>
+File::File(Info *i)
+{
+ info = i;
+ fd = 0;
+ savestate = NO_CHANGE;
+ filename = new char[1];
+ extension = new char[1];
+}
File::File(const char *fn, const char* ext, Info *i)
{
@@ -104,8 +112,8 @@ File::~File()
break;
}
- delete filename;
- delete extension;
+ delete[] filename;
+ delete[] extension;
}
int File::Move(char *destination)