File 0016-Externalize-strncpy_kind.patch of Package sblim-sfcb.23461

From 4672ade216628d602b5fe89f2378601d0724393d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Tue, 28 Nov 2017 11:58:05 +0100
Subject: [PATCH 16/25] Externalize strncpy_kind()

---
 control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/control.c b/control.c
index 95ca2463b821..d83e26895c7b 100644
--- a/control.c
+++ b/control.c
@@ -83,7 +83,7 @@ long            httpReqHandlerTimeout;
  * 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;
-- 
2.15.0

openSUSE Build Service is sponsored by