ports-local/www/elinks/files/patch-src_protocol_header.c
2024-03-25 16:37:59 -04:00

14 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;