Skip to content

Commit

Permalink
Merge pull request coturn#466 from chanduthedev/null-check
Browse files Browse the repository at this point in the history
added null check for second char
  • Loading branch information
misi authored Feb 12, 2020
2 parents 4badbbf + 25338fa commit fbd79ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/common/apputils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbd79ed

Please sign in to comment.