Skip to content
Permalink
Browse files

Merge pull request #466 from chanduthedev/null-check

added null check for second char
  • Loading branch information
misi committed Feb 12, 2020
2 parents 4badbbf + 25338fa commit fbd79ed560871cfe079e2eeed7ce98a75d25bf57
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/apps/common/apputils.c
@@ -786,7 +786,7 @@ void print_abs_file_name(const char *msg1, const char *msg2, const char *fn)
if(fn[0]=='/') {
STRCPY(absfn,fn);
} else {
if(fn[0]=='.' && fn[1]=='/')
if(fn[0]=='.' && fn[1] && fn[1]=='/')
fn+=2;
if(!getcwd(absfn,sizeof(absfn)-1))
absfn[0]=0;

0 comments on commit fbd79ed

Please sign in to comment.
You can’t perform that action at this time.