aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
Diffstat (limited to 'field.c')
-rw-r--r--field.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/field.c b/field.c
index 54055adc..61f0d7f6 100644
--- a/field.c
+++ b/field.c
@@ -1182,7 +1182,7 @@ set_FIELDWIDTHS()
if (errno == 0 && *end == ':' && (0 < tmp && tmp <= UINT_MAX)) {
FIELDWIDTHS->fields[i].skip = tmp;
scan = end + 1;
- if (*scan == '-') {
+ if (*scan == '-' || is_blank(*scan)) {
fatal_error = true;
break;
}
@@ -1223,7 +1223,7 @@ set_FIELDWIDTHS()
if (fatal_error)
fatal(_("invalid FIELDWIDTHS value, for field %d, near `%s'"),
- i, scan);
+ i + 1, scan);
}
/* set_FS --- handle things when FS is assigned to */