aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-10-16 11:21:15 +0200
committerThomas White <taw@bitwiz.org.uk>2009-10-16 11:21:15 +0200
commitd4091423728c46d15e1f771be032aa62f2bf32e9 (patch)
treeffcdfb7d637e6e3ecc2e67afea8a94a5a91d58c8 /src
parent699f3fa9f21f24170dbd5d7091c1c374f4948aef (diff)
Overwrite old file if present
Diffstat (limited to 'src')
-rw-r--r--src/hdf5-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 2992357d..9ece8ada 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -28,7 +28,7 @@ int hdf5_write(const char *filename, const uint16_t *data,
hsize_t size[2];
hsize_t max_size[2];
- fh = H5Fcreate(filename, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT);
+ fh = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if ( fh < 0 ) {
fprintf(stderr, "Couldn't create file: %s\n", filename);
return 1;