mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4176
This commit is contained in:
parent
46385bdae7
commit
424c45c6e5
|
@ -781,6 +781,7 @@ int try_fopen(char* path, FILE*& f, char* mode) {
|
||||||
|
|
||||||
f = fopen(path, mode);
|
f = fopen(path, mode);
|
||||||
if (!f) {
|
if (!f) {
|
||||||
|
memset(dirpath, '\0', sizeof(dirpath));
|
||||||
p = strrchr(path, '/');
|
p = strrchr(path, '/');
|
||||||
if (p) {
|
if (p) {
|
||||||
strncpy(dirpath, path, (int)(p-path));
|
strncpy(dirpath, path, (int)(p-path));
|
||||||
|
|
Loading…
Reference in New Issue