diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-10-14 19:16:54 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-10-14 19:16:54 (GMT) |
commit | 504fbbe27f378b3d06abf4341b4fb71156e863af (patch) | |
tree | 655ef57959351d36a1d36d06991d75a14e955c1a /test/vfd.c | |
parent | b76762fab1c9ef6b2496859c349cec0a3e5439d6 (diff) | |
download | hdf5-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:
Diffstat (limited to 'test/vfd.c')
-rw-r--r-- | test/vfd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |