Browse Source

Merge commit 'ed6bf41' into bfgminer

Luke Dashjr 11 years ago
parent
commit
30c7cf15b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deviceapi.c

+ 1 - 1
deviceapi.c

@@ -887,7 +887,7 @@ nohelp:
 	
 	size_t matchlen = 0;
 	if (newvalue)
-		while (!isspace(newvalue[0]))
+		while (newvalue[matchlen] && !isspace(newvalue[matchlen]))
 			++matchlen;
 	
 	for ( ; sdf->optname; ++sdf)