aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2003-05-21 18:43:18 +0800
committertobez <tobez@FreeBSD.org>2003-05-21 18:43:18 +0800
commitfa9d7347b058d042323ed1e0bccf016afda74491 (patch)
treee995b0495e495294bb70b249a66cda0065e0ef5f
parente8eb86056dd8c5ccb5f9386cb83bd13e52026238 (diff)
downloadfreebsd-ports-gnome-fa9d7347b058d042323ed1e0bccf016afda74491.tar.gz
freebsd-ports-gnome-fa9d7347b058d042323ed1e0bccf016afda74491.tar.zst
freebsd-ports-gnome-fa9d7347b058d042323ed1e0bccf016afda74491.zip
Fix coredumps.
PR: 52522 Submitted by: maintainer
-rw-r--r--www/p5-CGI-SpeedyCGI/Makefile2
-rw-r--r--www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index f2546fa25cac..421d1208a053 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -7,7 +7,7 @@
PORTNAME= CGI-SpeedyCGI
PORTVERSION= 2.21
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
diff --git a/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c b/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c
new file mode 100644
index 000000000000..e83793b7d986
--- /dev/null
+++ b/www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c
@@ -0,0 +1,20 @@
+--- src/speedy_opt.c Mon Sep 30 07:19:54 2002
++++ /tmp/speedy_opt.c Tue May 20 11:11:28 2003
+@@ -165,6 +165,8 @@ static void cmdline_split(
+ ++p;
+ if (*p)
+ strlist_append(doing_speedy_opts ? speedy_opts : perl_args, *p);
++ else
++ break;
+ }
+
+ if (*p) {
+@@ -422,7 +424,7 @@ const char * const *speedy_opt_script_ar
+ }
+
+ SPEEDY_INLINE const char *speedy_opt_script_fname(void) {
+- return exec_argv.ptrs[script_argv_loc];
++ return exec_argv.len > script_argv_loc ? exec_argv.ptrs[script_argv_loc] : NULL;
+ }
+
+ #ifdef SPEEDY_BACKEND