Browse Source

Bugfix: bitforce: next_line needs to increment beyond the newline character

Luke Dashjr 13 years ago
parent
commit
cddeaa64e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-bitforce.c

+ 2 - 2
driver-bitforce.c

@@ -871,8 +871,8 @@ void bitforce_process_qresult_line(struct thr_info *thr, char *buf, struct work
 static inline
 static inline
 char *next_line(char *in)
 char *next_line(char *in)
 {
 {
-	while (in[0] && in[0] != '\n')
-		++in;
+	while (in[0] && (in++)[0] != '\n')
+	{}
 	return in;
 	return in;
 }
 }