ports/graphics/gracula/patches/patch-gcl_c

15 lines
272 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
buffer overflow
Index: gcl.c
--- gcl.c.orig
+++ gcl.c
@@ -925,7 +925,7 @@ static int lexanal(void) {
if (env && *env) {
strncpy(lexbuffer, env, LBSIZE-1);
- lexbuffer[LBSIZE] = '\0';
+ lexbuffer[LBSIZE-1] = '\0';
}
else
lexbuffer[0] = '\0';