summaryrefslogtreecommitdiff
path: root/www/goaccess/patches/patch-src_parser.c
blob: 39c3931d72aeb1ad27b4fc8aa47f3373deba9ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_parser.c,v 1.3 2022/10/30 21:58:30 wiedi Exp $

Fixes build on netbsd

--- src/parser.c.orig	2022-09-29 20:27:15.000000000 +0000
+++ src/parser.c
@@ -1360,7 +1360,7 @@ find_xff_host (GLogItem * logitem, char 
   /* if the log format current char is not within the braces special chars, then
    * we assume the range of IPs are within hard delimiters */
   if (!strchr (skips, **p) && strchr (*str, **p)) {
-    strcpy (pch, (char[2]) { (char) **p, '\0' });
+    strcpy (pch, ((char[2]) { (char) **p, '\0' }));
     if (!(extract = parse_string (&(*str), pch, 1)))
       goto clean;