openbsd-ports/graphics/fxtv/patches/patch-tvutil_c
naddy 87674e8f6a Complete overhaul of this port.
Submitted by Wilbern Cobb <vedge@csoft.org>.
2002-02-02 00:52:18 +00:00

27 lines
978 B
Plaintext

$OpenBSD: patch-tvutil_c,v 1.2 2002/02/02 00:52:18 naddy Exp $
--- tvutil.c.orig Sun Oct 22 23:43:46 2000
+++ tvutil.c Wed Aug 15 13:46:30 2001
@@ -114,7 +114,7 @@ void CleanupChildFileDesc()
#elif defined(__NetBSD__)
int mib[2] = { CTL_KERN, OPEN_MAX };
#elif defined(__OpenBSD__)
- int mib[2] = { CTL_KERN, OPEN_MAX };
+ int mib[2] = { CTL_KERN, KERN_MAXFILES };
#endif
int i;
size_t len;
@@ -194,11 +194,12 @@ void TVUTILCmdStrToArgList(
while ( (in_quote || !isspace(*s)) && (*s != '\0') ) {
ignore = FALSE;
- if (( *s == '\'' ) || ( *s == '\"' ))
+ if (( *s == '\'' ) || ( *s == '\"' )) {
if ( !in_quote )
in_quote = TRUE , ignore = TRUE, quote_char = *s;
else if ( quote_char == *s )
in_quote = FALSE, ignore = TRUE;
+ }
if ( !ignore && ( p-arg < sizeof(arg)-1 ) )
*(p++) = *s;