[Git][NTPsec/ntpsec][master] Avoid a -Werror=format-security warning.

Eric S. Raymond gitlab at mg.gitlab.com
Sat Dec 10 19:31:24 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
7abd42b9 by Eric S. Raymond at 2016-12-10T14:30:59-05:00
Avoid a -Werror=format-security warning.

- - - - -


1 changed file:

- ntptime/ntptime.c


Changes:

=====================================
ntptime/ntptime.c
=====================================
--- a/ntptime/ntptime.c
+++ b/ntptime/ntptime.c
@@ -356,7 +356,7 @@ main(
 #if defined(STRUCT_NTPTIMEVAL_HAS_TAI)
 		printf(json ? jfmt5 : ofmt5, (long)ntv.tai);
 #else
-		printf(json ? jfmt6 : ofmt6);
+		fputs(json ? jfmt6 : ofmt6, stdout);
 #endif /* STRUCT_NTPTIMEVAL_HAS_TAI */
 	}
 	status = ntp_adjtime_ns(&ntx);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7abd42b9f84221828513ca0904f345369d5be487
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161210/9c09ddc9/attachment.html>


More information about the vc mailing list