about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-24 22:37:11 -0500
committerJune McEnroe <june@causal.agency>2019-01-24 22:37:11 -0500
commita7f3ff317278d8179d6006d65b1f9b31e97155b0 (patch)
tree7c4d5aeb7d7905ed9c7e8bf6846f7a77efc77b3d
parentMake all tar flags consistent (diff)
downloadcatgirl-a7f3ff317278d8179d6006d65b1f9b31e97155b0.tar.gz
catgirl-a7f3ff317278d8179d6006d65b1f9b31e97155b0.zip
Remove FreeBSD-specific iswascii call
Diffstat (limited to '')
-rw-r--r--edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.c b/edit.c
index 93cba12..6abd379 100644
--- a/edit.c
+++ b/edit.c
@@ -97,7 +97,7 @@ static void killForeWord(void) {
 
 static void rot13(void) {
 	for (wchar_t *ch = line.buf; ch != line.end; ++ch) {
-		if (!iswascii(*ch)) continue;
+		if (*ch > L'z') continue;
 		if (iswupper(*ch)) *ch = L'A' + (*ch - L'A' + 13) % 26;
 		if (iswlower(*ch)) *ch = L'a' + (*ch - L'a' + 13) % 26;
 	}