shithub: scc

Download patch

ref: 23aa25d545c7f63321afd86478a77537a0ad66d8
parent: 3d3ef19b6beb4639c7471dde143b06500bf8568f
author: Quentin Rameau <[email protected]>
date: Tue Sep 12 09:31:35 EDT 2017

[libc] Fix ctype array size

--- a/lib/c/src/ctype.c
+++ b/lib/c/src/ctype.c
@@ -3,7 +3,7 @@
 #undef ctype
 
 /* __ctype is shifted by one to match EOF */
-unsigned char __ctype[256] = {
+unsigned char __ctype[257] = {
 	0,                                              /* EOF */
 	_C,_C,_C,_C,_C,_C,_C,_C,                        /* 0-7 */
 	_C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C,         /* 8-15 */