summaryrefslogtreecommitdiff
path: root/databases/palm-db-tools/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'databases/palm-db-tools/patches/patch-ag')
-rw-r--r--databases/palm-db-tools/patches/patch-ag15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/palm-db-tools/patches/patch-ag b/databases/palm-db-tools/patches/patch-ag
new file mode 100644
index 00000000000..d6e7dea93c6
--- /dev/null
+++ b/databases/palm-db-tools/patches/patch-ag
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1 2010/08/11 12:21:56 dsainty Exp $
+
+Don't unnecessarily remove const, which complicates casting.
+
+--- libflatfile/MobileDB.cpp.orig 2010-08-08 23:23:04.940277744 +1200
++++ libflatfile/MobileDB.cpp 2010-08-08 23:24:13.267340616 +1200
+@@ -221,7 +221,7 @@
+ if (field + 1 > fields.size()) fields.resize(field + 1);
+
+ // Now search for the end of the current field.
+- pi_char_t* q = reinterpret_cast<pi_char_t*>
++ const pi_char_t* q = reinterpret_cast<const pi_char_t*>
+ (memchr(p, 0, rec.end() - p));
+ if (!q)
+ throw PalmLib::error("field terminiator is missing");