summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cut.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cut.c b/src/cut.c
index ab14abcb2..e89460e1b 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -57,6 +57,8 @@
#define ADD_RANGE_PAIR(rp, low, high) \
do \
{ \
+ if (low == 0 || high == 0) \
+ FATAL_ERROR (_("fields and positions are numbered from 1")); \
if (n_rp >= n_rp_allocated) \
{ \
(rp) = X2NREALLOC (rp, &n_rp_allocated); \