opnsense-ports/sysutils/bbcp/files/patch-src__bbcp_Args.C
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

20 lines
638 B
C

--- src/bbcp_Args.C.orig 2015-01-16 13:16:09.000000000 -0800
+++ src/bbcp_Args.C 2015-01-16 13:17:22.000000000 -0800
@@ -58,7 +58,7 @@
bbcp_Opt *p = this;
do if (i <= p->Optmaxl && i >= p->Optminl &&
!strncmp(p->Optword, optarg, i)) return p->Optvalu;
- while(p = p->Optnext);
+ while((p = p->Optnext));
return 0;
}
@@ -203,7 +203,7 @@
if (optspec[1] == '.')
{if (argval && *argval == '-')
if (inStream) arg_stream.RetToken();
- else Aloc--;
+ }else{ Aloc--;
argval = 0;
return *optspec;
}