[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] [patch] (was Re: [hobbit] bb download)
- To: hobbit (at) hswn.dk, hobbitmon-developer (at) lists.sourceforge.net
- Subject: Re: [hobbit] [patch] (was Re: [hobbit] bb download)
- From: "Malcolm Hunter" <malcolm.hunter (at) gmx.co.uk>
- Date: Tue, 08 Dec 2009 18:35:53 +0100
- References: <20091208013957.303800 (at) gmx.net> <4B1E561D.306 (at) bakarasse.de> <20091208163138.85480 (at) gmx.net>
> It seems it is a bug in the code. When msg is assigned the values, it's
> given the wrong length. Here's a patch that fixes the problem:
>
>
> --- hobbitd.c 2009-12-08 16:20:54.000000000 +0000
> +++ hobbitd.c.fixed 2009-12-08 16:19:04.000000000 +0000
> @@ -1858,5 +1858,5 @@
>
>
> -unsigned char *get_filecache(char *fn)
> +unsigned char *get_filecache(char *fn, long *flen)
> {
> RbtIterator handle;
> @@ -1872,4 +1872,5 @@
> result = (unsigned char *)malloc(item->len);
> memcpy(result, item->fdata, item->len);
> + flen = item->len;
Oops! This line should read:
*flen = item->len;
Malcolm
--
Technical copy-editor & proofreader
KDE Proofreading Team
KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01