summaryrefslogtreecommitdiff
path: root/math/moab/files/patch-src_io_WriteNCDF.cpp
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-05-20 12:52:53 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2022-05-20 13:08:36 -0700
commitd1ba638adb7df0daa566390706929336aebe211b (patch)
tree3555a4ccd472b51f6f994cd3b0197380554cd4c6 /math/moab/files/patch-src_io_WriteNCDF.cpp
parentaudio/noise-repellent-lv2: Update 0.2.2 -> 0.2.3 (diff)
math/moab: Update 5.2.1 -> 5.3.1
Diffstat (limited to 'math/moab/files/patch-src_io_WriteNCDF.cpp')
-rw-r--r--math/moab/files/patch-src_io_WriteNCDF.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/math/moab/files/patch-src_io_WriteNCDF.cpp b/math/moab/files/patch-src_io_WriteNCDF.cpp
index 8c91cad073bb..bba6c59dcfd1 100644
--- a/math/moab/files/patch-src_io_WriteNCDF.cpp
+++ b/math/moab/files/patch-src_io_WriteNCDF.cpp
@@ -1,13 +1,15 @@
---- src/io/WriteNCDF.cpp.orig 2018-11-23 06:26:09 UTC
+- workaround for https://bitbucket.org/fathomteam/moab/issues/157/please-do-not-convert-null-to-char-this
+
+--- src/io/WriteNCDF.cpp.orig 2021-11-12 00:54:52 UTC
+++ src/io/WriteNCDF.cpp
-@@ -161,8 +161,8 @@ void WriteNCDF::time_and_date(char* time
- strftime(date_string, TIME_STR_LEN, "%m/%d/%Y", local_time);
+@@ -160,8 +160,8 @@ void WriteNCDF::time_and_date( char* time_string, char
+ strftime( date_string, TIME_STR_LEN, "%m/%d/%Y", local_time );
- // Terminate with NULL character
-- time_string[10] = (char)NULL;
-- date_string[10] = (char)NULL;
-+ time_string[10] = (char)0;
-+ date_string[10] = (char)0;
+ // Terminate with NULL character
+- time_string[10] = (char)NULL;
+- date_string[10] = (char)NULL;
++ time_string[10] = (char)0;
++ date_string[10] = (char)0;
}
- ErrorCode WriteNCDF::write_file(const char *exodus_file_name,
+ ErrorCode WriteNCDF::write_file( const char* exodus_file_name, const bool overwrite, const FileOptions& opts,