diff options
Diffstat (limited to 'usr.bin/indent')
-rw-r--r-- | usr.bin/indent/indent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index e9902e8a300b..e6a83a8a84a7 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -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 @@ check_type: 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--; |