summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-12 04:03:12 +0000
committerSam James <sam@gentoo.org>2024-03-12 04:03:12 +0000
commitdd619923c273bcc95d69be933e30c043b23941d9 (patch)
tree9a64d191db1cfaa3d4eecb4c5d4fbc104c8fb92b /net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch
parentdev-util/dialog: add 1.3.20240307 (diff)
downloadgentoo-dd619923c273bcc95d69be933e30c043b23941d9.tar.gz
gentoo-dd619923c273bcc95d69be933e30c043b23941d9.tar.bz2
gentoo-dd619923c273bcc95d69be933e30c043b23941d9.zip
net-irc/psybnc: fix build w/ LTO
Closes: https://bugs.gentoo.org/861464 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch')
-rw-r--r--net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch b/net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch
new file mode 100644
index 000000000000..cd0325613fe1
--- /dev/null
+++ b/net-irc/psybnc/files/psybnc-2.4.3-strmncpy-lto-mismatch.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/861464
+--- a/src/p_global.h
++++ b/src/p_global.h
+@@ -1109,7 +1109,7 @@ int replace(char *rps, char whatc, char toc);
+ char *nobreak(char *tobreak);
+ char *randstring(int length);
+ char *strmcat(char *first,char *second);
+-char *strmncpy(char *dest, char *source, unsigned int len);
++char *strmncpy(char *dest, char *source, size_t len);
+ int strmncasecmp(char *one, char *two);
+ int strmcmp(char *one, char *two);
+ int strmwildcmp(char *line, char *wildcard);
+--- a/src/p_string.c
++++ b/src/p_string.c
+@@ -56,7 +56,7 @@ int ucase (char *inc)
+
+ /* string copy with len and zero delimit */
+
+-char *strmncpy(char *dest, char *source, unsigned int len)
++char *strmncpy(char *dest, char *source, size_t len)
+ {
+ char bf[strlen(source)+2];
+ char *pt;