1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 04:31:03 +00:00

core: silence gcc warning about sprintf() use in add_pool() - this time for sure.

This commit is contained in:
Noel Maersk 2014-03-28 17:20:12 +02:00
parent 524833f684
commit db0f7cf6f0

View File

@ -531,9 +531,9 @@ struct pool *add_pool(void)
quit(1, "Failed to calloc pool in add_pool");
pool->pool_no = pool->prio = total_pools;
/* Default pool name */
/* Default pool name is "" (empty string) */
char buf[32];
sprintf(buf, "");
buf[0] = '\0';
pool->name = strdup(buf);
pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2));