freebsd-ports/www/elinks/files/patch-src_protocol_header.c
Dustin Marquess 6636979433 www/elinks: update to 0.16.0
ChangeLog: https://raw.githubusercontent.com/rkd77/elinks/master/NEWS

 * detect xterm on my computer
 * alternative mujs engine for js
 * bump mozjs to 102
 * experimental XHR implementation
 * macros in exmode
 * removed infinite loop, which occurred under BSD
 * optional terminal hyperlinks in dumps

PR:             268664
Reported by:    jailbird@fdf.net
2023-01-08 19:33:55 +01:00

15 lines
444 B
C

--- src/protocol/header.c.orig 2022-12-25 18:17:02 UTC
+++ src/protocol/header.c
@@ -141,9 +141,9 @@ char *
* The terms message-header, field-name, start-line, and field-content
* are defined in RFC 2616 sections 4.1 and 4.2. */
char *
-parse_header(char *head, const char *item, char **ptr)
+parse_header(const char *head, const char *item, const char **ptr)
{
- char *pos = head;
+ const char *pos = head;
if (!pos) return NULL;