about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-01-06 21:31:06 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-01-06 21:31:06 +0000
commit6318e041d17a3dc82589cf324afa115b6c907dfe (patch)
treee083249e0bd6692ba5683cb534aebfc12786325b /Src/utils.c
parent020e116c54e61fcd3eea1be5938a6aa03d7c559c (diff)
downloadzsh-6318e041d17a3dc82589cf324afa115b6c907dfe.tar.gz
zsh-6318e041d17a3dc82589cf324afa115b6c907dfe.tar.xz
zsh-6318e041d17a3dc82589cf324afa115b6c907dfe.zip
unposted: fix argument type for write_loop()
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index a4cd67812..844a43e1b 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2405,8 +2405,10 @@ getquery(char *valid_chars, int purge)
 	}
 	zbeep();
     }
-    if (c >= 0)
-	write_loop(SHTTY, &c, 1);
+    if (c >= 0) {
+	char buf = (char)c;
+	write_loop(SHTTY, &buf, 1);
+    }
     if (nl)
 	write_loop(SHTTY, "\n", 1);