Browse Source

submit_work: increase string buffer, to avoid overflow

Jeff Garzik 15 years ago
parent
commit
145e5fe141
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cpu-miner.c

+ 1 - 1
cpu-miner.c

@@ -179,7 +179,7 @@ static void submit_work(struct work *work)
 {
 	char *hexstr = NULL;
 	json_t *val, *res;
-	char s[256];
+	char s[345];
 
 	printf("PROOF OF WORK FOUND?  submitting...\n");