From a1d941195d09954508ee356f30d7989bb1d426c4 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 5 Feb 2004 23:16:31 +0000 Subject: Fixes from 31-Jul-2003; make it 8-bit clean. Forgotten by: ru (for far too long) --- contrib/one-true-awk/lex.c | 4 ++-- contrib/one-true-awk/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/one-true-awk') diff --git a/contrib/one-true-awk/lex.c b/contrib/one-true-awk/lex.c index 39f5d4d..1766d71 100644 --- a/contrib/one-true-awk/lex.c +++ b/contrib/one-true-awk/lex.c @@ -550,9 +550,9 @@ int input(void) /* get next lexical input character */ extern char *lexprog; if (yysptr > yysbuf) - c = *--yysptr; + c = (uschar)*--yysptr; else if (lexprog != NULL) { /* awk '...' */ - if ((c = *lexprog) != 0) + if ((c = (uschar)*lexprog) != 0) lexprog++; } else /* awk -f ... */ c = pgetc(); diff --git a/contrib/one-true-awk/main.c b/contrib/one-true-awk/main.c index 6e6604e..5ca7c6c 100644 --- a/contrib/one-true-awk/main.c +++ b/contrib/one-true-awk/main.c @@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20030729"; +const char *version = "version 20030731"; #define DEBUG #include -- cgit v1.1