9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] devenv
Date: Fri, 24 Feb 2012 23:07:35 -0500	[thread overview]
Message-ID: <85d3cad332c396b76af7fd2c5ac50772@brasstown.quanstro.net> (raw)
In-Reply-To: <0885d8e33b4f0b3dea392de2f1ad5241@gmx.de>

; 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 */
  	char	errbuf0[ERRMAX];
  	char	errbuf1[ERRMAX];
- 	char	genbuf[128];	/* buffer used e.g. for last name element from namec */
+ 	char	genbuf[ERRMAX];	/* buffer used e.g. for last name element from namec */
  	Chan	*slash;
  	Chan	*dot;

; diffy -c ../port/devenv.c
/n/dump/2012/0224/sys/src/9/port/devenv.c:8,13 - ../port/devenv.c:8,14
  enum
  {
  	Maxenvsize = 16300,
+ 	Maxename = ERRMAX-1,		/* sizeof(Proc->genbuf) */
  };

  static Egrp	*envgrp(Chan *c);
/n/dump/2012/0224/sys/src/9/port/devenv.c:146,151 - ../port/devenv.c:147,154

  	if(c->qid.type != QTDIR)
  		error(Eperm);
+ 	if(strlen(name) > Maxename)
+ 		error("name too long");

  	omode = openmode(omode);
  	eg = envgrp(c);



  reply	other threads:[~2012-02-25  4:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-25  3:33 cinap_lenrek
2012-02-25  4:07 ` erik quanstrom [this message]
2012-02-25 11:35   ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85d3cad332c396b76af7fd2c5ac50772@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).