Re: [Clamav-users] Freshclam Bug

2004-02-15 Thread Bill Maidment
Tomasz I'm still coming to grips with C, but I was wondering why the CVS has: char *buf = mmalloc((strlen(user) + strlen(pass)) * 2 + 4); = in lines 362 and 460 of freshclam/manager.c I calculated that it should be + 3 based on 2 bytes for th

Re: [Clamav-users] Freshclam Bug

2004-02-15 Thread Tomasz Kojm
On Sun, 15 Feb 2004 20:07:59 +1100 Bill Maidment <[EMAIL PROTECTED]> wrote: > Hi > > I previously reported a bug in freshclam/manager.c at line 362. My fix > > was incorrect and the problem is also at line 460. > > Both lines 362 and 460 need to be changed from: > char* buf = mmallo

[Clamav-users] Freshclam Bug

2004-02-15 Thread Bill Maidment
Hi I previously reported a bug in freshclam/manager.c at line 362. My fix was incorrect and the problem is also at line 460. Both lines 362 and 460 need to be changed from: char* buf = mmalloc(strlen(user)*2+4); to: char *buf = mmalloc((strlen(user) + strlen(pass)) * 2 + 3);