summaryrefslogtreecommitdiff
path: root/www/thy/patches/patch-ab
blob: 90c3b96b2c25583393a5f5617ebe40a63795025e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ab,v 1.1 2006/01/19 21:11:25 joerg Exp $

--- src/gzip.c.orig	2006-01-19 21:02:26.000000000 +0000
+++ src/gzip.c
@@ -54,7 +54,7 @@
  * We are going the easy way: no filename, no timestamp, no
  * nothing. Just a plain dumb gzip header.
  */
-static char gz_header[] = {0x1f, 0x8b, Z_DEFLATED, 0, 0, 0, 0, 0, 0, 0x03};
+static char my_gz_header[] = {0x1f, 0x8b, Z_DEFLATED, 0, 0, 0, 0, 0, 0, 0x03};
 
 /** @internal Opaque type for compressed session data.
  */
@@ -118,9 +118,9 @@ thy_zlib_send (session_t *session, void 
       /* Construct gzip header */
       free (session->body.header.buff);
       session->body.header.buff =
-	(char *)bhc_malloc (sizeof (gz_header) + 1);
-      memcpy (session->body.header.buff, gz_header, sizeof (gz_header));
-      session->body.header.size = sizeof (gz_header);
+	(char *)bhc_malloc (sizeof (my_gz_header) + 1);
+      memcpy (session->body.header.buff, my_gz_header, sizeof (my_gz_header));
+      session->body.header.size = sizeof (my_gz_header);
       session->body.header.offset = 0;
 
       /* Construct gzip footer */