diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-06 06:51:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-06 06:51:19 +0000 |
commit | 4c93827e34e879111b00873b2cd7c823b6b69f88 (patch) | |
tree | fdb9ea83c685200de45a790065fcc6be6a26fc88 /wiretap/ber.c | |
parent | c039f9f8a8bb04d2a8dcd6e2ec1facaee3f1f855 (diff) |
From Jakub Zawadzki:
file_read(buf, bsize, count, file) macro is compilant with fread
function and takes elements count+ size of each element, however to make
it compilant with gzread() it always returns number of bytes.
In wiretap file_read() this is not really used, file_read is called
either with bsize set to 1 or count to 1.
Attached patch remove bsize argument from macro.
svn path=/trunk/; revision=36491
Diffstat (limited to 'wiretap/ber.c')
-rw-r--r-- | wiretap/ber.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/ber.c b/wiretap/ber.c index a5f738c9ba..54373531c8 100644 --- a/wiretap/ber.c +++ b/wiretap/ber.c @@ -126,7 +126,7 @@ int ber_open(wtap *wth, int *err, gchar **err_info _U_) gint64 file_size; int offset = 0, i; - bytes_read = file_read(&bytes, 1, BER_BYTES_TO_CHECK, wth->fh); + bytes_read = file_read(&bytes, BER_BYTES_TO_CHECK, wth->fh); if (bytes_read != BER_BYTES_TO_CHECK) { *err = file_error(wth->fh); return (*err != 0) ? -1 : 0; |