Diffstat (limited to 'noncore/apps/opie-reader/ztxt.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/ztxt.cpp b/noncore/apps/opie-reader/ztxt.cpp index 8091d32..79c5fa4 100644 --- a/noncore/apps/opie-reader/ztxt.cpp +++ b/noncore/apps/opie-reader/ztxt.cpp | |||
@@ -5,2 +5,3 @@ | |||
5 | #include "Bkmks.h" | 5 | #include "Bkmks.h" |
6 | #include "static.h" | ||
6 | 7 | ||
@@ -11,3 +12,3 @@ int ztxt::OpenFile(const char *src) | |||
11 | { | 12 | { |
12 | if (!Cpdb::openfile(src)) | 13 | if (!Cpdb::openpdbfile(src)) |
13 | { | 14 | { |
@@ -156,3 +157,8 @@ CList<Bkmk>* ztxt::getbkmklist() | |||
156 | // printf("Bookmark number:%d:%.20s\n", i, bkmk.title); | 157 | // printf("Bookmark number:%d:%.20s\n", i, bkmk.title); |
157 | t->push_back(Bkmk(bkmk.title, NULL, ntohl(bkmk.offset))); | 158 | tchar title[MAX_BMRK_LENGTH]; |
159 | for (int j = 0; j < MAX_BMRK_LENGTH; j++) | ||
160 | { | ||
161 | title[j] = bkmk.title[j]; | ||
162 | } | ||
163 | t->push_back(Bkmk(title, NULL, ntohl(bkmk.offset))); | ||
158 | } | 164 | } |
@@ -161 +167,8 @@ CList<Bkmk>* ztxt::getbkmklist() | |||
161 | } | 167 | } |
168 | |||
169 | #ifndef __STATIC | ||
170 | extern "C" | ||
171 | { | ||
172 | CExpander* newcodec() { return new ztxt; } | ||
173 | } | ||
174 | #endif | ||