summaryrefslogtreecommitdiffstats
path: root/test/file_image.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2013-10-10 21:57:04 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2013-10-10 21:57:04 (GMT)
commit06aa7b6641ec24acfc9810f50d06b526a0eeef7d (patch)
tree7d731da908173b6d4d027d1e006ff4d325448758 /test/file_image.c
parent52412564af8656ac8871f5e5b1f3493453e2c4db (diff)
downloadhdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.zip
hdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.tar.gz
hdf5-06aa7b6641ec24acfc9810f50d06b526a0eeef7d.tar.bz2
[svn-r24285] Eliminate several "passing argument ... with different width due to prototype" warnings by casting constants to size_t where expected by string functions.
Tested on jam, koala,ostrich and platypus with h5committest.
Diffstat (limited to 'test/file_image.c')
-rw-r--r--test/file_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/file_image.c b/test/file_image.c
index d4056a7..b1b9d47 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -557,7 +557,7 @@ test_core(void)
/* Append ".copy" to the filename from the source directory */
VERIFY(HDstrlen(filename) < (1023 - 5), "file name too long.");
- HDstrncpy(copied_filename, filename, 1023);
+ HDstrncpy(copied_filename, filename, (size_t)1023);
copied_filename[1023] = '\0';
HDstrcat(copied_filename, ".copy");