From 7d2423ea38b8c47f92a8b332450b38e3a2d1fe0d Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Fri, 14 Oct 2005 13:31:18 -0500 Subject: [svn-r11560] Purpose: bug fix for family file driver forward compatibility test 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: windows xp, too minor to use h5committest Misc. update: --- test/file_handle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/file_handle.c b/test/file_handle.c index 76364c5..70fdc25 100644 --- a/test/file_handle.c +++ b/test/file_handle.c @@ -374,6 +374,7 @@ test_family_compat(void) goto error; 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))) { -- cgit v0.12