From 72596e3818b4fb3dcaabebc96aa481d299cfbd03 Mon Sep 17 00:00:00 2001 From: Adam Osuchowski Date: Sat, 1 Aug 2015 23:17:58 +0200 Subject: [PATCH] - fix compile error --- ntp-printf_format_string.patch | 12 ++++++++++++ ntp.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 ntp-printf_format_string.patch diff --git a/ntp-printf_format_string.patch b/ntp-printf_format_string.patch new file mode 100644 index 0000000..c9de60e --- /dev/null +++ b/ntp-printf_format_string.patch @@ -0,0 +1,12 @@ +diff -ruNp ntp-4.2.8p3.orig/sntp/unity/unity.c ntp-4.2.8p3/sntp/unity/unity.c +--- ntp-4.2.8p3.orig/sntp/unity/unity.c 2015-06-24 16:45:12.000000000 +0200 ++++ ntp-4.2.8p3/sntp/unity/unity.c 2015-08-01 23:09:13.789456521 +0200 +@@ -327,7 +327,7 @@ void UnityConcludeTest(void) + } + + printf("| "); +- printf(Unity.XFAILMessage); ++ printf("%s", Unity.XFAILMessage); + Unity.XFAILMessage = NULL; + } + else diff --git a/ntp.spec b/ntp.spec index b3851dd..da6d1e0 100644 --- a/ntp.spec +++ b/ntp.spec @@ -36,6 +36,7 @@ Patch1: %{name}-no_libelf.patch Patch2: %{name}-ipv6.patch Patch3: %{name}-nano.patch Patch4: %{name}-no_avahi.patch +Patch5: %{name}-printf_format_string.patch # FC patches + 100 Patch101: %{name}-4.2.6p1-sleep.patch Patch102: %{name}-4.2.6p1-droproot.patch @@ -237,6 +238,7 @@ Este pacote contém documentação adicional sobre o NTP versão 4. %patch2 -p1 %patch3 -p1 %{!?with_avahi:%patch4 -p1} +%patch5 -p1 ## FC patches #%patch101 -p1 -- 2.44.0