summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-18 21:33:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-19 19:44:37 -0800
commitf1f02941c7a8e538db18e10f4937170024d3405e (patch)
tree708cafb2bb85f373d2729fe3ed52a6d4c8025aee /file.c
parentaa7f2eeb8a1a46211b52b9c97e3f040c2f1a5ab8 (diff)
parent554b652d25d9ce853c4f8f2044f80ab1b198fb1b (diff)
downloadsubsurface-f1f02941c7a8e538db18e10f4937170024d3405e.tar.gz
Merge branch 'v4.4-branch' back into master
The manuals all will need a careful read. The changes to use lsb-release and the PCLinuxOS specific files got lost because I didn't want to try to rewite this in the middle of a merge. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Conflicts: Documentation/50-pot/subsurface-manual.pot Documentation/fr/po/subsurface-manual.fr.po Documentation/user-manual.txt Documentation/user-manual_es.txt Documentation/user-manual_fr.html.git Documentation/user-manual_fr.txt Documentation/user-manual_ru.html.git Documentation/user-manual_ru.txt file.c qthelper.cpp subsurface.pro subsurfacesysinfo.cpp xslt/DiveLog.xslt
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.c b/file.c
index b9cd5ba21..25221e635 100644
--- a/file.c
+++ b/file.c
@@ -14,6 +14,9 @@
/* For SAMPLE_* */
#include <libdivecomputer/parser.h>
+/* to check XSLT version number */
+#include <libxslt/xsltconfig.h>
+
/* Crazy windows sh*t */
#ifndef O_BINARY
#define O_BINARY 0
@@ -869,7 +872,9 @@ int parse_csv_file(const char *filename, int timef, int depthf, int tempf, int p
/* Increase the limits for recursion and variables on XSLT
* parsing */
xsltMaxDepth = 30000;
+#if LIBXSLT_VERSION > 10126
xsltMaxVars = 150000;
+#endif
if (timef >= MAXCOLS || depthf >= MAXCOLS || tempf >= MAXCOLS || po2f >= MAXCOLS || cnsf >= MAXCOLS || ndlf >= MAXCOLS || cnsf >= MAXCOLS || stopdepthf >= MAXCOLS || pressuref >= MAXCOLS)
return report_error(translate("gettextFromC", "Maximum number of supported columns on CSV import is %d"), MAXCOLS);