summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-03 16:12:32 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-03 16:12:32 (GMT)
commitdfcb3cebf17c20b6dfc0a1dd5178c2e2d01c4422 (patch)
tree6dd345c9832ff210c96dc7d642ba2e2f4d394bf6 /src/H5system.c
parent6da129cef05328a6935bb6ce65319944cdce5a95 (diff)
downloadhdf5-dfcb3cebf17c20b6dfc0a1dd5178c2e2d01c4422.zip
hdf5-dfcb3cebf17c20b6dfc0a1dd5178c2e2d01c4422.tar.gz
hdf5-dfcb3cebf17c20b6dfc0a1dd5178c2e2d01c4422.tar.bz2
[svn-r23862] Change printfs in perform output and h5dump to prevent overflow.
This fixes: https://jira.hdfgroup.uiuc.edu/browse/HDFFV-8450 Tested on Jam.
Diffstat (limited to 'src/H5system.c')
-rw-r--r--src/H5system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 85e554e..2a94028 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))