freebsd-ports/multimedia/vdr-plugin-sleeptimer/files/patch-sleeptimer.c
Juergen Lock 5d06f18a7c - Fix plugin arg parsing (-e).
- Bump PORTREVISION.
2011-08-05 22:27:42 +00:00

11 lines
314 B
C

--- a/sleeptimer.c
+++ b/sleeptimer.c
@@ -165,6 +165,8 @@ bool cPluginSleeptimer::ProcessArgs(int
{
// Implement command line argument processing here if applicable.
int c;
+ if (!strcmp(*argv, "sleeptimer"))
+ ++argv, --argc;
while((c = getopt(argc, argv, "e:")) != -1 ) {
switch(c) {
case 'e':