aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-27 21:26:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-27 21:26:28 +0300
commitc7882f59b6e5e4bb142928939264ca0c9af8e129 (patch)
treee06bf5d150cf69c441ef8b305a0f8f61c6039946 /awkgram.c
parent32649f52d26b1c3a6d09ffbca04928b476698713 (diff)
downloadegawk-c7882f59b6e5e4bb142928939264ca0c9af8e129.tar.gz
egawk-c7882f59b6e5e4bb142928939264ca0c9af8e129.tar.bz2
egawk-c7882f59b6e5e4bb142928939264ca0c9af8e129.zip
Minor fix when checking for bad source characters.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index 06279861..63439b36 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5154,7 +5154,7 @@ check_bad_char(int c)
}
if (iscntrl(c) && ! isspace(c))
- fatal(_("PEBKAC error: invalid character '\\%03o' in source code"), c);
+ fatal(_("PEBKAC error: invalid character '\\%03o' in source code"), c & 0xFF);
}
/* nextc --- get the next input character */