[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/parser/bitmap_character_...
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/parser/bitmap_character_... |
Date: |
Tue, 3 Jun 2008 10:40:08 +0200 |
On Tue, Jun 03, 2008 at 08:37:29AM +0000, Benjamin Wolsey wrote:
> unsigned char buf[3];
> - memset(buf, 0, 3);
> + std::memset(buf, 0, 3);
> +
> if ( 3 < in->read_bytes(buf, 3) )
> {
> log_error(_("Can't read file header"));
If we don't use buf[] *unless* read_bytes returned 3
there's no need to memset, right ?
--strk;