about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/utils.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d0fd822d7..5bef8dc69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-01-06  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* unposted: Src/utils.c: fix argument type for write_loop().
+
 	* 28588: Src/text.c, Test/C02cond.ztst: fix textual display
 	after =~ test.
 
@@ -14059,5 +14061,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5172 $
+* $Revision: 1.5173 $
 *****************************************************
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);