summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-10-14 19:16:54 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-10-14 19:16:54 (GMT)
commit504fbbe27f378b3d06abf4341b4fb71156e863af (patch)
tree655ef57959351d36a1d36d06991d75a14e955c1a
parentb76762fab1c9ef6b2496859c349cec0a3e5439d6 (diff)
downloadhdf5-504fbbe27f378b3d06abf4341b4fb71156e863af.zip
hdf5-504fbbe27f378b3d06abf4341b4fb71156e863af.tar.gz
hdf5-504fbbe27f378b3d06abf4341b4fb71156e863af.tar.bz2
[svn-r11562] Purpose:
Avoid bug for family file driver backward compatibility with 1.6. Description: Because there is no srcdir on windows, string pathname should be initialized as NULL before using strcat. Solution: Changed the code as above. Platforms tested: too minor to test. Misc. update:
-rw-r--r--test/vfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/vfd.c b/test/vfd.c
index b4c863f..674bd54 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -473,6 +473,7 @@ test_family_compat(void)
h5_fixname(COMPAT_BASENAME, fapl, filename, sizeof filename);
+ pathname[0] = '\0';
/* Generate correct name for test file by prepending the source path */
if(srcdir && ((strlen(srcdir) + strlen(filename) + 1) < sizeof(pathname))) {
strcpy(pathname, srcdir);