From 424c45c6e5f06e8ab8f46081721e2db4bc8815b3 Mon Sep 17 00:00:00 2001 From: Jeff Cobb Date: Fri, 10 Sep 2004 00:09:41 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4176 --- lib/util.C | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.C b/lib/util.C index 7075969310..cdcfe5a1cd 100755 --- a/lib/util.C +++ b/lib/util.C @@ -781,6 +781,7 @@ int try_fopen(char* path, FILE*& f, char* mode) { f = fopen(path, mode); if (!f) { + memset(dirpath, '\0', sizeof(dirpath)); p = strrchr(path, '/'); if (p) { strncpy(dirpath, path, (int)(p-path));