[packages/sblim-sfcb] - don't inline strncpy_kind
adamg
adamg at pld-linux.org
Sat Sep 29 23:29:09 CEST 2018
commit f31bb7f9ef177c3c0bce7bffd2180818534eb929
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Sat Sep 29 23:29:00 2018 +0200
- don't inline strncpy_kind
sblim-sfcb-dont-inline.patch | 11 +++++++++++
sblim-sfcb.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec
index b0f8095..ff71481 100644
--- a/sblim-sfcb.spec
+++ b/sblim-sfcb.spec
@@ -10,6 +10,7 @@ Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
# Source0-md5: 28021cdabc73690a94f4f9d57254ce30
Patch0: %{name}-fix.patch
Patch1: am.patch
+Patch2: %{name}-dont-inline.patch
URL: http://sblim.sourceforge.net/
BuildRequires: curl-devel >= 7.11.1
BuildRequires: libstdc++-devel
@@ -60,6 +61,7 @@ systemami.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
diff --git a/sblim-sfcb-dont-inline.patch b/sblim-sfcb-dont-inline.patch
new file mode 100644
index 0000000..2988fb2
--- /dev/null
+++ b/sblim-sfcb-dont-inline.patch
@@ -0,0 +1,11 @@
+--- sblim-sfcb-1.4.9/control.c~ 2014-11-25 02:43:10.000000000 +0100
++++ sblim-sfcb-1.4.9/control.c 2018-09-29 23:23:00.359541768 +0200
+@@ -83,7 +83,7 @@
+ * Kindly null terminate, always, even if might overwrite
+ * the last char of the truncated string.
+ */
+-inline char *strncpy_kind(char *to, char *from, size_t size) {
++char *strncpy_kind(char *to, char *from, size_t size) {
+ strncpy(to, from, size);
+ *(to + size - 1) = '\0';
+ return to;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sblim-sfcb.git/commitdiff/f31bb7f9ef177c3c0bce7bffd2180818534eb929
More information about the pld-cvs-commit
mailing list