diff options
Diffstat (limited to 'www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c')
-rw-r--r-- | www/p5-CGI-SpeedyCGI/files/patch-speedy_opt.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 |