diff options
author | marcus <marcus@FreeBSD.org> | 2003-10-10 06:59:27 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-10-10 06:59:27 +0000 |
commit | 2961ff6cf96dac87aae81bac4eced1133f3b2dad (patch) | |
tree | cd52044868b1b20f4b04a34632aff7c11243b791 | |
parent | eb19a1074567a7d190fe48becee13c1dece289f1 (diff) | |
download | FreeBSD-ports-2961ff6cf96dac87aae81bac4eced1133f3b2dad.zip FreeBSD-ports-2961ff6cf96dac87aae81bac4eced1133f3b2dad.tar.gz |
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>
-rw-r--r-- | x11/yelp/Makefile | 1 | ||||
-rw-r--r-- | x11/yelp/files/patch-src_info2html_main.c | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/x11/yelp/Makefile b/x11/yelp/Makefile index 650b22d..fd1009e 100644 --- a/x11/yelp/Makefile +++ b/x11/yelp/Makefile @@ -7,6 +7,7 @@ PORTNAME= yelp PORTVERSION= 2.4.0 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.4 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 0000000..bc6d3df --- /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; |