diff options
author | 1999-12-30 18:00:42 +0000 | |
---|---|---|
committer | 1999-12-30 18:00:42 +0000 | |
commit | 6faa7458b22cb240919f26219deac78afd07e87f (patch) | |
tree | 56ac20af916250e37bb6930d4eed366b71e0a2d2 | |
parent | fix tags link; tdeval@PrimeOBJ.COM (diff) | |
download | wireguard-openbsd-6faa7458b22cb240919f26219deac78afd07e87f.tar.xz wireguard-openbsd-6faa7458b22cb240919f26219deac78afd07e87f.zip |
dont strip off international characters; fixes pr/1020
-rw-r--r-- | usr.bin/fmt/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index 64531f4e9ba..408376ef1b8 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt.c,v 1.14 1999/12/15 05:34:33 deraadt Exp $ */ +/* $OpenBSD: fmt.c,v 1.15 1999/12/30 18:00:42 provos Exp $ */ /* Sensible version of fmt * @@ -168,7 +168,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: fmt.c,v 1.14 1999/12/15 05:34:33 deraadt Exp $"; + "$OpenBSD: fmt.c,v 1.15 1999/12/30 18:00:42 provos Exp $"; static const char copyright[] = "Copyright (c) 1997 Gareth McCaughan. All rights reserved.\n"; #endif /* not lint */ @@ -604,7 +604,7 @@ get_line(FILE *stream, size_t *lengthp) { if (buf==NULL) { length=100; buf=XMALLOC(length); } while ((ch=getc(stream)) != '\n' && ch != EOF) { if (ch==' ') ++spaces_pending; - else if (isprint(ch)) { + else if (!iscntrl(ch)) { while (len+spaces_pending >= length) { length*=2; buf=xrealloc(buf, length); } |