Skip to content

Commit

Permalink
ex: prevent buffer over-read when s is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
834N5 authored and kyx0r committed Aug 15, 2023
1 parent bf3055a commit e1a8c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ void ex_init(char **files, int n)
do {
ec_edit("", "e", s);
s = *(++files);
} while (s);
} while (--n > 0);
if (xled && (s = getenv("EXINIT")))
ex_command(s)
}

0 comments on commit e1a8c6f

Please sign in to comment.