From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] easylogo: add optional gzip support
Date: Wed, 10 Dec 2008 15:32:59 -0500 [thread overview]
Message-ID: <200812101533.00767.vapier@gentoo.org> (raw)
In-Reply-To: <20081210195727.301BE834B020@gemini.denx.de>
On Wednesday 10 December 2008 14:57:27 Wolfgang Denk wrote:
> In message ... you wrote:
> > diff --git a/tools/easylogo/easylogo.c b/tools/easylogo/easylogo.c
> > index 00a1e4e..c7e146f 100644
> > --- a/tools/easylogo/easylogo.c
> > +++ b/tools/easylogo/easylogo.c
> > @@ -2,16 +2,20 @@
> > ** Easylogo TGA->header converter
> > ** ==============================
> > ** (C) 2000 by Paolo Scaffardi (arsenio at tin.it)
> > +** (C) 2007-2008 Mike Frysinger <vapier@gentoo.org>
> > ** AIRVENT SAM s.p.a - RIMINI(ITALY)
>
> This is a bad place to add your copyright - splitting Paolo's entry.
oops, i didnt notice
> > + if (fread (compressed, st.st_size, 1, gz) != 1) {
> > + perror ("\nerror: reading gzip data failed");
> > + return -1;
> > + }
>
> All the returns above leak the gzfilename and gzcmd memory. Not that
> it really matters, but it's not clean.
ok
> Also, please omit the "\n" at the begin of the perror strings.
easylogo's output is byte by byte, so no \n means the error message and the
normal output run together
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081210/fa15ead5/attachment.pgp
next prev parent reply other threads:[~2008-12-10 20:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 4:20 [U-Boot] [PATCH] easylogo: add optional gzip support Mike Frysinger
2008-12-10 8:25 ` Wolfgang Denk
2008-12-10 18:44 ` [U-Boot] [PATCH v2] " Mike Frysinger
2008-12-10 19:57 ` Wolfgang Denk
2008-12-10 20:32 ` Mike Frysinger [this message]
2008-12-10 20:40 ` [U-Boot] [PATCH v3] " Mike Frysinger
2008-12-11 23:45 ` Wolfgang Denk
2008-12-30 8:15 ` [U-Boot] [PATCH v4] " Mike Frysinger
2009-01-24 1:05 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812101533.00767.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox