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 27
|
From: Carter Yagemann <yagemann@gatech.edu>
Date: Sat, 20 Jun 2020 09:06:08 -0400
Subject: Fix format string bug (#3).
Forwarded: not-needed
Origin: upstream, commit:059e636f932f91d41c652e455eaac7d4997b6c05
---
src/nwhois.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nwhois.c b/src/nwhois.c
index e54dd5c..54d574a 100644
--- a/src/nwhois.c
+++ b/src/nwhois.c
@@ -25,11 +25,11 @@ int get_nwhois(char *host)
/* Print introduction to function */
memset(linebuff, '\0', sizeof(linebuff));
snprintf(linebuff, sizeof(linebuff), "\nGathered Inic-whois information for %s\n", fhost);
- print_line(linebuff);
+ print_line("%s", linebuff);
memset(linebuff, '\0', sizeof(linebuff));
snprintf(linebuff, sizeof(linebuff), "---------------------------------\n");
- print_line(linebuff);
+ print_line("%s", linebuff);
/* TopLevelDomain output */
if (!( hostn = get_td(fhost) )){
|