From bc6a666a492e2f9b09357b24aef6e55a39537c8e Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Fri, 10 Oct 2003 06:59:27 +0000 Subject: 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 --- x11/yelp/files/patch-src_info2html_main.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 x11/yelp/files/patch-src_info2html_main.c (limited to 'x11/yelp/files') 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; -- cgit v1.2.3