summaryrefslogtreecommitdiffstats
path: root/src/translators/pilotdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/pilotdb')
-rw-r--r--src/translators/pilotdb/libflatfile/DB.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/translators/pilotdb/libflatfile/DB.cpp b/src/translators/pilotdb/libflatfile/DB.cpp
index 40e639a..0eee0e2 100644
--- a/src/translators/pilotdb/libflatfile/DB.cpp
+++ b/src/translators/pilotdb/libflatfile/DB.cpp
@@ -242,8 +242,8 @@ void PalmLib::FlatFile::DB::extract_listviews()
kdDebug() << "list view is corrupt" << endl;
}
// Determine the length of the name string.
- pi_char_t* null_ptr = reinterpret_cast<pi_char_t*>
- (memchr(chunk.data() + 4, 0, 32));
+ pi_char_t* null_ptr = const_cast<pi_char_t*>(reinterpret_cast<const pi_char_t*>
+ (memchr(chunk.data() + 4, 0, 32)));
if (null_ptr)
lv.name = std::string((char *) (chunk.data() + 4),
null_ptr - (chunk.data() + 4));