[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [mtools] [PATCH] Fix for mtype outputting garbage
From: |
Alain Knaff |
Subject: |
Re: [mtools] [PATCH] Fix for mtype outputting garbage |
Date: |
Sat, 28 Feb 2004 20:57:24 +0100 |
User-agent: |
KMail/1.6 |
begin Friday 24 October 2003 15:37, Panagiotis Issaris quote:
> Hi,
>
> It turned out that the problem was caused by the lack of initialisation
> of a SimpleFile_t variable in plain_io.c.
>
> The SimpleFileOpen function allocated memory but did not clear it before
> using it. Some fields were initialised, but the swap field sometimes did
> not get initialiased.
>
> Patch attached (diff -ur).
>
> With friendly regards,
> Panagiotis Issaris
Sorry for the slow response.
A fix for the issue is now in today's patch at
http://mtools.linux.lu/download.html
The fix changes the definition of the "New" macro such that it now
uses calloc (which zeroes out the allocated memory) rather than
malloc, which does not.
Regards,
Alain
_______________________________________________
mtools mailing list
address@hidden
http://www.tux.org/mailman/listinfo/mtools
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [mtools] [PATCH] Fix for mtype outputting garbage,
Alain Knaff <=