summaryrefslogtreecommitdiffstats
path: root/x11/yelp
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-15 03:48:22 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-15 03:48:22 +0800
commit9d1d286121fa3d21ff025aab69134183249899f8 (patch)
tree42856a01099c73e62384a54b061b787c5ebb5eff /x11/yelp
parentd69ad8f7fd950274e3b93c0778b3ad848ecb74d0 (diff)
downloadmarcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar.gz
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar.bz2
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar.lz
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar.xz
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.tar.zst
marcuscom-ports-9d1d286121fa3d21ff025aab69134183249899f8.zip
Make sure the manpage path is NUL terminated in all cases. This fixes a
problem viewing manpages when they were not cached as catpages. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1068 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/yelp')
-rw-r--r--x11/yelp/Makefile1
-rw-r--r--x11/yelp/files/patch-src_man2html_yelp-man2html.c12
2 files changed, 9 insertions, 4 deletions
diff --git a/x11/yelp/Makefile b/x11/yelp/Makefile
index 1d6a34915..3d68fc216 100644
--- a/x11/yelp/Makefile
+++ b/x11/yelp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= yelp
PORTVERSION= 2.3.6
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3
diff --git a/x11/yelp/files/patch-src_man2html_yelp-man2html.c b/x11/yelp/files/patch-src_man2html_yelp-man2html.c
index 93b99da55..e30c81ba0 100644
--- a/x11/yelp/files/patch-src_man2html_yelp-man2html.c
+++ b/x11/yelp/files/patch-src_man2html_yelp-man2html.c
@@ -1,5 +1,5 @@
---- src/man2html/yelp-man2html.c.orig Thu Jul 24 14:06:36 2003
-+++ src/man2html/yelp-man2html.c Thu Jul 24 14:06:06 2003
+--- src/man2html/yelp-man2html.c.orig Tue Jun 24 05:03:50 2003
++++ src/man2html/yelp-man2html.c Thu Aug 14 15:47:14 2003
@@ -129,6 +129,7 @@
#include <string.h>
#include <sys/stat.h>
@@ -18,7 +18,7 @@
int i,len;
char *buf;
char *h = '\0';
-@@ -3845,6 +3849,20 @@
+@@ -3845,6 +3849,24 @@
* right.
*/
@@ -34,12 +34,16 @@
+ }
+ }
+ output[j] = '\0';
++ } else {
++ i = strlen(output) - 1;
++ while (g_ascii_isspace((unsigned char)output[i]))
++ output[i--] = '\0';
+ }
+#else
len = strlen(output);
for(i = 0; i < len; i++)
{
-@@ -3855,8 +3873,7 @@
+@@ -3855,8 +3877,7 @@
i = strlen(output) - 1;
while (g_ascii_isspace((unsigned char)output[i]))
output[i--] = '\0';