summaryrefslogtreecommitdiffstats
path: root/office/gbgoffice/patches/08_fix_const_conversion.patch
diff options
context:
space:
mode:
author Petar Petrov <ppetrov@paju.oulu.fi>2012-09-11 23:42:31 -0500
committer Robby Workman <rworkman@slackbuilds.org>2012-09-11 23:53:42 -0500
commitdf5b7aedb981bee9a7a87ea2ac775a53caa4a444 (patch)
tree345960e77e0427d45231a7c9ad920415ba5b3e7b /office/gbgoffice/patches/08_fix_const_conversion.patch
parentdea576fec344061d75fce02c9b07ee7d14596a32 (diff)
downloadslackbuilds-df5b7aedb981bee9a7a87ea2ac775a53caa4a444.tar.gz
slackbuilds-df5b7aedb981bee9a7a87ea2ac775a53caa4a444.tar.xz
office/gbgoffice: Build fixes and miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/gbgoffice/patches/08_fix_const_conversion.patch')
-rw-r--r--office/gbgoffice/patches/08_fix_const_conversion.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/office/gbgoffice/patches/08_fix_const_conversion.patch b/office/gbgoffice/patches/08_fix_const_conversion.patch
new file mode 100644
index 0000000000..0aa6c54fcf
--- /dev/null
+++ b/office/gbgoffice/patches/08_fix_const_conversion.patch
@@ -0,0 +1,17 @@
+# Description: Since a constant is passed into strchr(), pu must also be const
+# to keep the compiler from generating an error.
+# Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gbgoffice/+bug/445624
+# Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550115
+#
+--- a/src/translator.cpp
++++ b/src/translator.cpp
+@@ -315,7 +315,8 @@ bool Translator::findWord(const char *wo
+
+ char *Translator::transformResult(const char *result) {
+ int j, i, m, n, u;
+- char *b, *pu;
++ const char *pu;
++ char *b;
+ char c;
+ strcpy(dataBuffer2, result);
+ if ((advancedSearchState) && (advancedSearchHighlight)) {