Browse Source

Fix bus error in DebugPrint if -datadir given non-existent directory.

0.8
Gavin Andresen 14 years ago
parent
commit
dbe79d3451
  1. 2
      util.cpp

2
util.cpp

@ -165,7 +165,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
GetDataDir(pszFile); GetDataDir(pszFile);
strlcat(pszFile, "/debug.log", sizeof(pszFile)); strlcat(pszFile, "/debug.log", sizeof(pszFile));
fileout = fopen(pszFile, "a"); fileout = fopen(pszFile, "a");
setbuf(fileout, NULL); // unbuffered if (fileout) setbuf(fileout, NULL); // unbuffered
} }
if (fileout) if (fileout)
{ {

Loading…
Cancel
Save