just say
if(strlen(name) >= sizeof(up->genbuf))
error("name too long");
if that's where they are going.
; diffy -c ../port/portdat.h
/n/dump/2012/0224/sys/src/9/port/portdat.h:701,707 - ../port/portdat.h:701,707
char*errstr;/* reason we're unwinding the error stack,
errbuf1 or 0 */
charerrbuf0[ERRMAX];
charerrbuf1[ERRMAX];
- chargenbuf[128];/
devwalk() gets in a endless loop when envgen() truncates the
Dir.name (because it doesnt fit in up->genbuf) from create().
echo A >/env/AAA #(128 A's, works)
echo A >/env/AAA #(128 A's again, now process spins in kernel mode and
never returns)
--
cinap