diff --git a/sys/src/ape/lib/ap/plan9/_envsetup.c b/sys/src/ape/lib/ap/plan9/_envsetup.c index 55cf33b85..c83d45008 100644 --- a/sys/src/ape/lib/ap/plan9/_envsetup.c +++ b/sys/src/ape/lib/ap/plan9/_envsetup.c @@ -59,6 +59,8 @@ _envsetup(void) for(j=0; jname); + if(n >= sizeof(name)-4) + continue; m = d9->length; i = p - ps; if(i+n+1+m+1 > psize) {