diff options
-rw-r--r-- | var/spack/repos/builtin/packages/unifyfs/package.py | 2 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/unifyfs/unifyfs-sysio.c.patch | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/unifyfs/package.py b/var/spack/repos/builtin/packages/unifyfs/package.py index df3c035e68..4b3f92945b 100644 --- a/var/spack/repos/builtin/packages/unifyfs/package.py +++ b/var/spack/repos/builtin/packages/unifyfs/package.py @@ -54,6 +54,8 @@ class Unifyfs(AutotoolsPackage): depends_on('gotcha@0.0.2', when='@:0.9.0') depends_on('leveldb', when='@:0.9.0') + patch('unifyfs-sysio.c.patch', when='@0.9.1') + conflicts('^mercury~bmi') conflicts('^mercury~sm') # Known compatibility issues with ifort and xlf. Fixes coming. diff --git a/var/spack/repos/builtin/packages/unifyfs/unifyfs-sysio.c.patch b/var/spack/repos/builtin/packages/unifyfs/unifyfs-sysio.c.patch new file mode 100644 index 0000000000..99e2086b51 --- /dev/null +++ b/var/spack/repos/builtin/packages/unifyfs/unifyfs-sysio.c.patch @@ -0,0 +1,11 @@ +--- spack-src/client/src/unifyfs-sysio.c.bak 2020-12-03 09:04:41.197202000 +0900 ++++ spack-src/client/src/unifyfs-sysio.c 2021-03-04 10:06:32.626989637 +0900 +@@ -245,7 +245,7 @@ + * that is big enough */ + buf = (char*) malloc(len); + if (buf != NULL) { +- strncpy(buf, unifyfs_cwd, len); ++ memcpy(buf, unifyfs_cwd, strlen(unifyfs_cwd)); + } else { + errno = ENOMEM; + } |