From: Adam Gołębiowski Date: Sat, 29 Sep 2018 21:29:00 +0000 (+0200) Subject: - don't inline strncpy_kind X-Git-Tag: auto/th/sblim-sfcb-1.4.9-4~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fsblim-sfcb.git;a=commitdiff_plain;h=f31bb7f - don't inline strncpy_kind --- 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; 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}