summaryrefslogtreecommitdiffstats
path: root/src/H5Omtime.c
diff options
context:
space:
mode:
authorRobert Kim Yates <rkyates@llnl.gov>1998-08-17 15:20:56 (GMT)
committerRobert Kim Yates <rkyates@llnl.gov>1998-08-17 15:20:56 (GMT)
commita1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d (patch)
tree88a5b2a2942c309949011084b019596f7929d0e2 /src/H5Omtime.c
parent8ed18c9e73733939216251e1d154b18e7d34bad3 (diff)
downloadhdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.zip
hdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.tar.gz
hdf5-a1e8ce1d81cbb8b6029c1bb972fcc527cd179f0d.tar.bz2
[svn-r599] Added code to convert HDF dataspace selections to MPI datatypes.
Diffstat (limited to 'src/H5Omtime.c')
-rw-r--r--src/H5Omtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c
index ae85abb..5601550 100644
--- a/src/H5Omtime.c
+++ b/src/H5Omtime.c
@@ -189,7 +189,7 @@ H5O_mtime_encode(H5F_t __unused__ *f, uint8 *p, const void *_mesg)
/* encode */
tm = gmtime(mesg);
- sprintf(p, "%04d%02d%02d%02d%02d%02d",
+ sprintf((char*)p, "%04d%02d%02d%02d%02d%02d",
1900+tm->tm_year, 1+tm->tm_mon, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);