shithub: libmujs

Download patch

ref: ad3817fcc317250f0459155b6965fa2d78524113
parent: 9f3e141d805cddec7cce1fae38373a82c61e3300
author: Tor Andersson <tor.andersson@artifex.com>
date: Thu Jun 25 07:51:29 EDT 2020

Silence gcc warning about overflow.

--- a/utf.c
+++ b/utf.c
@@ -133,8 +133,8 @@
 
 	/* overlong null character */
 	if (c == 0) {
-		str[0] = 0xc0;
-		str[1] = 0x80;
+		str[0] = (char)0xc0;
+		str[1] = (char)0x80;
 		return 2;
 	}