Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:PowerPC
goaccess
bin2c.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bin2c.patch of Package goaccess
diff -Nur goaccess-1.3.orig/src/bin2c.c goaccess-1.3/src/bin2c.c --- goaccess-1.3.orig/src/bin2c.c 2018-11-23 03:00:08.000000000 +0100 +++ goaccess-1.3/src/bin2c.c 2019-08-26 14:18:22.550783529 +0200 @@ -9,10 +9,10 @@ * I have decided not to change the licence. */ +#include <assert.h> #include <stdio.h> -#include <string.h> #include <stdlib.h> -#include <assert.h> +#include <string.h> #ifdef USE_BZ2 #include <bzlib.h> @@ -46,7 +46,6 @@ fseek (f_input, 0, SEEK_END); file_size = ftell (f_input); fseek (f_input, 0, SEEK_SET); - file_size++; if ((buf = malloc (file_size)) == NULL) { fprintf (stderr, "Unable to malloc bin2c.c buffer\n"); @@ -59,7 +58,7 @@ #ifdef USE_BZ2 // allocate for bz2. - bz2_size = ((file_size) * 1.01) + 600; // as per the documentation + bz2_size = (file_size + file_size / 100 + 1) + 600; // as per the documentation if ((bz2_buf = malloc (bz2_size)) == NULL) { fprintf (stderr, "Unable to malloc bin2c.c buffer\n");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor