aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-29 12:21:03 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-29 12:21:03 -0500
commit145e5fe141857c0757fdb5bb6909583aa67691b1 (patch)
tree08aa588f18681b1e2ceb407b192a8c1c129f02a1
parent74bb196296f8c56fd8925856ed59f05aa3850f9b (diff)
submit_work: increase string buffer, to avoid overflow
-rw-r--r--cpu-miner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-miner.c b/cpu-miner.c
index e1d8a5d..a47d77a 100644
--- a/cpu-miner.c
+++ b/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");