Hello community,

here is the log from the commit of package goaccess for openSUSE:Factory 
checked in at 2019-08-27 12:01:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/goaccess (Old)
 and      /work/SRC/openSUSE:Factory/.goaccess.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "goaccess"

Tue Aug 27 12:01:37 2019 rev:3 rq:726410 version:1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/goaccess/goaccess.changes        2018-11-26 
10:31:30.232943755 +0100
+++ /work/SRC/openSUSE:Factory/.goaccess.new.7948/goaccess.changes      
2019-08-27 12:01:37.511649044 +0200
@@ -1,0 +2,7 @@
+Mon Aug 26 12:36:38 UTC 2019 - Hendrik Vogelsang <[email protected]>
+
+- Add bin2c.patch to fix
+  https://github.com/allinurl/goaccess/issues/1415
+  which lead to garbage in HTML reports
+
+-------------------------------------------------------------------

New:
----
  bin2c.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ goaccess.spec ++++++
--- /var/tmp/diff_new_pack.CENiKa/_old  2019-08-27 12:01:38.119648960 +0200
+++ /var/tmp/diff_new_pack.CENiKa/_new  2019-08-27 12:01:38.131648959 +0200
@@ -2,7 +2,7 @@
 #
 # spec file for package goaccess
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 Pascal Bleser <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -26,6 +26,7 @@
 Group:          Productivity/Networking/Web/Utilities
 URL:            https://goaccess.io/
 Source:         http://tar.goaccess.io/goaccess-%{version}.tar.gz
+Patch0:         bin2c.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc
@@ -42,6 +43,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \

++++++ bin2c.patch ++++++
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");

Reply via email to