summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-08 14:04:23 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-08 14:04:23 (GMT)
commit38bdc241ed4f62c9d628de563f6f98f3dda6281c (patch)
tree61fc02af6d14212eb8917d31e118b6c61aa9dec9 /src
parent55de59d03430cd3804905e0dbeade08308da48e7 (diff)
downloadhdf5-38bdc241ed4f62c9d628de563f6f98f3dda6281c.zip
hdf5-38bdc241ed4f62c9d628de563f6f98f3dda6281c.tar.gz
hdf5-38bdc241ed4f62c9d628de563f6f98f3dda6281c.tar.bz2
[svn-r23868] bring r 23862 from trunk:
Change printfs in perform output and h5dump to prevent overflow. This fixes: https://jira.hdfgroup.uiuc.edu/browse/HDFFV-8450
Diffstat (limited to 'src')
-rw-r--r--src/H5system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c
index a93a128..bc77131 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -189,7 +189,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
}
/* Extra type modifiers */
- if(HDstrchr("ZHhlqLI", *s)) {
+ if(HDstrchr("zZHhlqLI", *s)) {
switch(*s) {
/*lint --e{506} Don't issue warnings about constant value booleans */
/*lint --e{774} Don't issue warnings boolean within 'if' always evaluates false/true */
@@ -203,6 +203,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
break;
case 'Z':
+ case 'z':
if(sizeof(size_t) < sizeof(long))
modifier[0] = '\0';
else if(sizeof(size_t) == sizeof(long))