From 2c30b8fe4992afdfc64660c3ebe630b31f0b0d7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 13 Jun 2006 06:33:33 +0000 Subject: [PATCH] - terminate format string with \0 Changed files: cancd-nullterminate.patch -> 1.1 cancd.spec -> 1.6 --- cancd-nullterminate.patch | 12 ++++++++++++ cancd.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 cancd-nullterminate.patch diff --git a/cancd-nullterminate.patch b/cancd-nullterminate.patch new file mode 100644 index 0000000..2bfd895 --- /dev/null +++ b/cancd-nullterminate.patch @@ -0,0 +1,12 @@ +--- cancd-0.1.0/cancd.c~ 2006-06-13 09:29:06.436946340 +0300 ++++ cancd-0.1.0/cancd.c 2006-06-13 09:29:10.687041938 +0300 +@@ -169,6 +169,9 @@ + } + } + ++ /* terminate the format string! */ ++ *fptr = '\0'; ++ + newstr = malloc(sizeof(char) * PATH_MAX); + if (!newstr) + { diff --git a/cancd.spec b/cancd.spec index 2b89960..4bcbd2f 100644 --- a/cancd.spec +++ b/cancd.spec @@ -2,7 +2,7 @@ Summary: The CA NetConsole Daemon Summary(pl): Demon CA NetConsole Name: cancd Version: 0.1.0 -Release: 0.5 +Release: 0.8 License: GPL Group: Applications/File Source0: http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{version}.tar.gz @@ -10,6 +10,7 @@ Source0: http://oss.oracle.com/projects/cancd/dist/files/source/%{name}-%{versio Source1: %{name}.init Source2: %{name}.sysconfig Patch0: %{name}-make.patch +Patch1: %{name}-nullterminate.patch URL: http://oss.oracle.com/projects/cancd/ BuildRequires: rpmbuild(macros) >= 1.228 Requires(post,preun): /sbin/chkconfig @@ -36,6 +37,7 @@ sterownika netconsole (konsoli sieciowej). %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %{__make} \ -- 2.44.0