]> git.pld-linux.org Git - packages/cancd.git/commitdiff
- terminate format string with \0
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Jun 2006 06:33:33 +0000 (06:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cancd-nullterminate.patch -> 1.1
    cancd.spec -> 1.6

cancd-nullterminate.patch [new file with mode: 0644]
cancd.spec

diff --git a/cancd-nullterminate.patch b/cancd-nullterminate.patch
new file mode 100644 (file)
index 0000000..2bfd895
--- /dev/null
@@ -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)
+     {
index 2b899600a12da4981e2823ff3ed4c57cb5db225a..4bcbd2f921456d46cb346b9ee301610825f19cfa 100644 (file)
@@ -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} \
This page took 0.072175 seconds and 4 git commands to generate.