summaryrefslogtreecommitdiff
path: root/x11/yelp/files/patch-src_info2html_main.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-10-10 06:59:27 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-10-10 06:59:27 +0000
commitbc6a666a492e2f9b09357b24aef6e55a39537c8e (patch)
treeefaa0ef1bb6b9f950ccf38e570109a8b3d441e32 /x11/yelp/files/patch-src_info2html_main.c
parent- The startup script checks the existance of (diff)
Correct some gross mis-uses of g_strdup_printf() which caused a crash
when clicking on info links in -CURRENT. Tracked down by: Fritz Heinrichmeyer <Fritz.Heinrichmeyer@Fernuni-Hagen.de>
Notes
Notes: svn path=/head/; revision=90767
Diffstat (limited to '')
-rw-r--r--x11/yelp/files/patch-src_info2html_main.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/yelp/files/patch-src_info2html_main.c b/x11/yelp/files/patch-src_info2html_main.c
new file mode 100644
index 000000000000..bc6d3df4b8a8
--- /dev/null
+++ b/x11/yelp/files/patch-src_info2html_main.c
@@ -0,0 +1,25 @@
+--- src/info2html/main.c.orig Fri Oct 10 02:53:54 2003
++++ src/info2html/main.c Fri Oct 10 02:54:23 2003
+@@ -125,11 +125,11 @@
+
+ for(i = 0; i < ndirs; i++) {
+ ext = "";
+- buf = g_strdup_printf (buf, "%s/%s.info", dirs[i], args[0]);
++ buf = g_strdup_printf ("%s/%s.info", dirs[i], args[0]);
+ if(file_exists(buf))
+ break;
+ g_free (buf);
+- buf = g_strdup_printf (buf, "%s/%s", dirs[i], args[0]);
++ buf = g_strdup_printf ("%s/%s", dirs[i], args[0]);
+ if(file_exists(buf)) {
+ no_info = TRUE;
+ break;
+@@ -141,7 +141,7 @@
+ if(file_exists(buf))
+ break;
+ g_free (buf);
+- buf = g_strdup_printf (buf, "%s/%s.gz", dirs[i], args[0]);
++ buf = g_strdup_printf ("%s/%s.gz", dirs[i], args[0]);
+ if(file_exists(buf)) {
+ no_info = TRUE;
+ break;