Improved POSIX compatibility (OpenBSD, NetBSD support)

git-svn-id: svn://ultimatepp.org/upp/trunk@1095 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-04-24 08:29:02 +00:00
parent 4f33d6f280
commit 107b0a4952
16 changed files with 70 additions and 29 deletions

View file

@ -46,7 +46,7 @@ static void sLogFile(char *fn, const char *app = ".log")
const char *q = strrchr(exe, '/');
if(q)
exe = q + 1;
if(!exe)
if(!*exe)
exe = "upp";
strcat(path, exe);
mkdir(path, 0755);