From: Ian Jackson Subject: Re: [PATCH] tools: misc: xen-tmem-list-parse: fix output ugliness Date: Thu, 24 Nov 2011 18:41:45 +0000 Message-ID: <20174.36841.738985.984736@mariner.uk.xensource.com> References: <20171.55835.240381.351382@mariner.uk.xensource.com> <2b60cfe7-2c97-45ef-bf89-88cd01cff1d3@default> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2b60cfe7-2c97-45ef-bf89-88cd01cff1d3@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer Cc: xen-devel@lists.xensource.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Dan Magenheimer writes ("Re: [Xen-devel] [PATCH] tools: misc: xen-tmem-list-pars> No, it doesn't. I agree it *could* if parse_string is > used/called differently. The caller simply needs to > ensure that the declared buffer is at least one larger > than the data to be matched which is true for both > callers. Urgh. So in the previous code the buffer was a byte too big ? I think functions with prototypes like f(int len, char *buf) should take buf[len], not buf[len+1]. > P.S. Please note that I am still not receiving email > >from the xen-devel reflector (and am on vacation this > week so probably won't be looking into it... my best > guess is that the Oracle spam filter isn't happy with > the new source of the xen-devel messages, as some > other Oracle folk are having problems too). Hrmm. If this is still a problem when you get back please let me know. ian.