]> git.pld-linux.org Git - packages/stunnel.git/blame - stunnel-fixargs.patch
- fixed
[packages/stunnel.git] / stunnel-fixargs.patch
CommitLineData
eab5ff01
JR
1--- stunnel.c~ Thu Feb 24 12:32:27 2000
2+++ stunnel.c Sun Mar 5 22:17:16 2000
3@@ -361,6 +361,11 @@
4 default_args[1] = 0;
5 options.execargs = default_args;
6 } else { /* There are some arguments - use execargs[0] as servname */
7- options.execargs = argv + optind;
8- safecopy(options.servname, options.execargs[0]);
9+ default_args[0] = options.servname;
10+ c = 1;
11+ while (optind < argc) {
12+ default_args[c++] = argv[optind];
13+ optind++;
14+ }
15+ options.execargs = default_args;
16 }
This page took 0.022085 seconds and 4 git commands to generate.