From 504fbbe27f378b3d06abf4341b4fb71156e863af Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Fri, 14 Oct 2005 14:16:54 -0500 Subject: [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: --- test/vfd.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v0.12