hi matthias i agree, if the string has 64 char, then the buffer should have + 1 for the (char)0 but then the original source would be wrong too. ADDRLEN was 31 and printf has %32s i did only multiply by 2 in an analog way. but maybe the idea was an other. i did really not look around at the source code. i am sure emmanuel can give the answer. and the original greylist.db file has 31 long char-strings, for those, which are cut off. and therefor a %32s-printf would be o.k. but thanks for advice. best regards hans -- On Thu, Sep 09, 2004 at 08:42:47AM +0200, Matthias Scheler wrote: > > ! #define ADDRLEN 63 > > Either that should read 65 ... > > > ! fprintf(stream, "%s %64s %64s %ld # %s\n", > ... or these should read "%62s". > > Kind regards > > -- > Matthias Scheler http://scheler.de/~matthias/ > > > > > Yahoo! Groups Links > > > >
Message
Re: [milter-greylist] cutting off sender-string
2004-09-09 by hans hm04
Attachments
- No local attachments were found for this message.