indent(1): use errx() instead of abort()

This commit is contained in:
Piotr Pawel Stefaniak 2018-06-03 17:05:55 +00:00
parent e1baf57e4b
commit 33c2464207
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334569

View File

@ -495,7 +495,7 @@ main(int argc, char **argv)
while (*buf_ptr == ' ' || *buf_ptr == '\t') {
*sc_end++ = *buf_ptr++;
if (sc_end >= &save_com[sc_size]) {
abort();
errx(1, "input too long");
}
}
if (buf_ptr >= buf_end) {
@ -1196,7 +1196,7 @@ main(int argc, char **argv)
bcopy(s_lab + com_start, sc_end, com_end - com_start);
sc_end += com_end - com_start;
if (sc_end >= &save_com[sc_size])
abort();
errx(1, "input too long");
e_lab = s_lab + com_start;
while (e_lab > s_lab && (e_lab[-1] == ' ' || e_lab[-1] == '\t'))
e_lab--;