From 9ee6d97c2883d42f204a533a8bc1f4562df778fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 16 Sep 2020 09:32:48 +0100 Subject: gentoo resync : 16.09.2020 --- .../pinfo/files/pinfo-0.6.10-info-suffix.patch | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch (limited to 'app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch') diff --git a/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch b/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch deleted file mode 100644 index 45be53cd1bf6..000000000000 --- a/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- a/src/filehandling_functions.c -+++ b/src/filehandling_functions.c -@@ -96,11 +96,14 @@ matchfile(char **buf, char *name) - { - /* use strcat rather than strdup, because xmalloc handles all - * malloc errors */ -- char *thisfile = xmalloc(strlen(dp->d_name)+1); -+ int len = strlen(dp->d_name)+1; -+ char *thisfile = xmalloc(len * 2); -+ char *thisfile_info = thisfile + len; - strcat(thisfile, dp->d_name); - - /* strip suffixes (so "gcc.info.gz" -> "gcc") */ - strip_compression_suffix(thisfile); -+ strcat(thisfile_info, thisfile); - strip_info_suffix(thisfile); - - /* compare this file with the file we're looking for */ -@@ -109,8 +112,7 @@ matchfile(char **buf, char *name) - /* we found a match! */ - matched++; - /* put it in the buffer */ -- strncat(Buf, thisfile, 1023-strlen(Buf)); -- strncat(Buf, ".info", 1023-strlen(Buf)); -+ strncat(Buf, thisfile_info, 1023-strlen(Buf)); - - /* clean up, and exit the loop */ - xfree(thisfile); -- cgit v1.2.3