Bug#534641: mendex bug

2013-09-08 Thread TSUCHIMURA Nobuyuki
x27;ll attach my test source. -- Thank you, Nobuyuki Tsuchimura From: TSUCHIMURA Nobuyuki Subject: [ptex:00357] Re: mendex bug Date: Sun, 8 Sep 2013 16:15:58 +0900 Message-ID: <20130908161558k.tutim...@nn.iij4u.or.jp> > Hi Norbert, hi all, > > -#define TAIL(x) (x+strlen(x)) &

Bug#534641: mendex bug

2013-09-08 Thread TSUCHIMURA Nobuyuki
Hi Norbert, hi all, -#define TAIL(x) (x+strlen(x)) +#define TAIL(x) ((x)+strlen(x)) It was my fault. Thank you for correcting. +#define TAIL_LEN(x) ((x)+strlen(x)), (BUFFERLEN-strlen(x)) Nice idea. I'm not sure but I'm wandering if snprintf() can handle negative (minus) length or not.