7cffae38d6d97a06a6b927824db2ba22bf05e8a5 angie Thu Jul 17 11:57:51 2014 -0700 To be safe, udcSetDefaultDir should cloneString the path given to it. diff --git src/lib/udc.c src/lib/udc.c index 5ccb2b8..39fd825 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -1592,31 +1592,31 @@ setCurrentDir(curPath); return result; } static char *defaultDir = "/tmp/udcCache"; char *udcDefaultDir() /* Get default directory for cache */ { return defaultDir; } void udcSetDefaultDir(char *path) /* Set default directory for cache */ { -defaultDir = path; +defaultDir = cloneString(path); } int udcCacheTimeout() /* Get cache timeout (if local cache files are newer than this many seconds, * we won't ping the remote server to check the file size and update time). */ { return cacheTimeout; } void udcSetCacheTimeout(int timeout) /* Set cache timeout (if local cache files are newer than this many seconds, * we won't ping the remote server to check the file size and update time). */ { cacheTimeout = timeout;