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
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
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);