diff options
Diffstat (limited to 'src/H5Omtime.c')
-rw-r--r-- | src/H5Omtime.c | 2 |
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); |