From: Ian Jackson Subject: Re: [PATCH] libxl: off by one fix for new network-attach args parsing Date: Fri, 17 Jun 2011 18:58:10 +0100 Message-ID: <19963.38322.821359.6419@mariner.uk.xensource.com> References: <764214d25cd9825925ae.1307904851@devel14> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <764214d25cd9825925ae.1307904851@devel14> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Marek Marczykowski Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Marek Marczykowski writes ("[Xen-devel] [PATCH] libxl: off by one fix for new network-attach args parsing"): > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -1238,7 +1238,7 @@ static int match_option_size(const char > return !rc; > } > #define match_option(_prefix, _arg, _oparg) \ > - match_option_size((_prefix "="), sizeof((_prefix)) + 1, (_arg), &(_oparg)) > + match_option_size((_prefix "="), sizeof((_prefix)), (_arg), &(_oparg)) I haven't applied your patch yet, so could you fold this in and resend please ? Why do you use _'d names for the macro formal parameters ? This is not our usual coding style. Finally can you please make sure that your patch has lines of only around 75 characters, and call the macro MATCH_OPTION since it's not a normal function. thanks, Ian.