File: 0004-fix-ftbfs-strlcat.patch

package info (click to toggle)
blobwars 2.00-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 78,024 kB
  • sloc: cpp: 19,024; makefile: 135; ansic: 87
file content (17 lines) | stat: -rw-r--r-- 713 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: fix ftbfs issue due to ambiguating new declaration on strlcat and strlcpy
Author: Bo YU <tsu.yubo@gmail.com>
Bug: https://bugs.debian.org/1071296
Last-Update: 2024-05-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/headers.h
+++ b/src/headers.h
@@ -56,7 +56,7 @@
 #define textdomain(x) while(false)
 #endif
 
-#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__)
+#if 0 && !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__)
 static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); }
 static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; }
 #endif