1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Off by one error.

This commit is contained in:
Con Kolivas 2012-10-12 14:57:42 +11:00
parent 9ccfcee6dc
commit fc72ad5563

2
util.c
View File

@ -832,7 +832,7 @@ bool extract_sockaddr(struct pool *pool, char *url)
sprintf(url_address, "%.*s", url_len, url_begin); sprintf(url_address, "%.*s", url_len, url_begin);
if (port_len) if (port_len)
snprintf(port, 5, "%.*s", port_len, port_start); snprintf(port, 6, "%.*s", port_len, port_start);
else else
strcpy(port, "80"); strcpy(port, "80");