Browse Source

Merge commit '9fb1a7a' into bfgminer

Conflicts:
	util.c
Luke Dashjr 13 years ago
parent
commit
93b71e68d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      util.c

+ 2 - 0
util.c

@@ -343,6 +343,8 @@ static int curl_debug_cb(__maybe_unused CURL *handle, curl_infotype type,
 			// data is not null-terminated, so we need to copy and terminate it for applog
 			char datacp[size + 1];
 			memcpy(datacp, data, size);
+			while (isspace(datacp[size-1]))
+				--size;
 			datacp[size] = '\0';
 			applog(LOG_DEBUG, "Pool %u: %s", pool->pool_no, datacp);
 			break;