shithub: neatroff

Download patch

ref: 9c7a7f0f1eede61731fa24c7ed7f4bd3cd21a16e
parent: 5c7624e050d8559ee996b251fc063a5df07d9d46
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Apr 25 08:31:03 EDT 2013

in: cast to unsigned char in in_read()

--- a/in.c
+++ b/in.c
@@ -104,7 +104,7 @@
 	/* replacing \\ with \ only for buffers inserted via in_push() */
 	if (buf->buf[buf->pos] == '\\' && buf->buf[buf->pos + 1] == '\\')
 		buf->pos++;
-	return buf->buf[buf->pos++];
+	return (unsigned char) buf->buf[buf->pos++];
 }
 
 int in_next(void)