Author: Sergio Durigan Junior , Jakub Wilk Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071316 Forwarded: no X-Not-Forwarded-Reason: upstream seems dead; repository has been archived Description: strlcat is present in glibc since version 2.38; there's no need to reimplement it anymore. Index: infinipath-psm-3.3+20.604758e7/ptl_ips/ips_proto_dump.c =================================================================== --- infinipath-psm-3.3+20.604758e7.orig/ptl_ips/ips_proto_dump.c 2025-04-05 17:10:11.973708214 -0400 +++ infinipath-psm-3.3+20.604758e7/ptl_ips/ips_proto_dump.c 2025-04-05 17:11:26.566038744 -0400 @@ -136,23 +136,6 @@ printf("mqhdr %x\n", p_hdr->mqhdr); } -// linux doesn't have strlcat; this is a stripped down implementation -// not super-efficient, but we use it rarely, and only for short strings -// not fully standards conforming! -static size_t strlcat(char *d, const char *s, size_t l) -{ - int dlen = strlen(d), slen, max; - if(l<=dlen) // bug - return l; - slen = strlen(s); - max = l-(dlen+1); - if(slen>max) - slen = max; - memcpy(d+dlen, s, slen); - d[dlen+slen] = '\0'; - return dlen+slen+1; // standard says to return full length, not actual -} - // decode RHF errors; only used one place now, may want more later void ips_proto_get_rhf_errstring(uint32_t err, char *msg, size_t len) {