File: gcc-14.patch

package info (click to toggle)
hasciicam 1.3%2Bgit20190911.8b5a35a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 520 kB
  • sloc: ansic: 537; makefile: 23
file content (18 lines) | stat: -rw-r--r-- 541 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Port to GCC-14
 GCC-14 checks the type of pointers. We add const to html_escapes to
 avoid the error.
Bug-Debian: http://bugs.debian.org/1075060
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Forwarded: https://github.com/jaromil/hasciicam/issues/16

--- a/src/hasciicam.c
+++ b/src/hasciicam.c
@@ -162,7 +162,7 @@ struct aa_savedata ascii_save;
 
 char hascii_header[1024];
 
-char *html_escapes[] =
+const char *html_escapes[] =
   { "<", "&lt;", ">", "&gt;", "&", "&amp;", NULL };
 
 struct aa_format hascii_format = {