File: fix_sslh_compiler_warnings

package info (click to toggle)
sslh 1.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 592 kB
  • sloc: ansic: 2,386; perl: 402; sh: 293; makefile: 101
file content (14 lines) | stat: -rw-r--r-- 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Silence compiler warnings because ssl_err_msg isn't a format string
Author: Don Armstrong <don@debian.org>
Forwarded: no
--- a/sslh-main.c
+++ b/sslh-main.c
@@ -167,7 +167,7 @@
             strcpy(argv[i], "--tls");
             /* foreground option not parsed yet, syslog not open, just print on
              * stderr and hope for the best */
-            fprintf(stderr, ssl_err_msg);
+            fprintf(stderr, "%s",ssl_err_msg);
         }
     }
 }