|
|
@@ -1487,7 +1487,7 @@ bool socket_run() {
|
|
|
if ((idx = findanyidx(xx)) != -1) {
|
|
|
if (likely(dcc[idx].type->activity)) {
|
|
|
if (buf[0])
|
|
|
- strlcpy(get_buf[current_get_buf], buf, i+1);
|
|
|
+ strlcpy(get_buf[current_get_buf], buf, sizeof(get_buf[current_get_buf]));
|
|
|
|
|
|
if (++current_get_buf == GET_BUFS)
|
|
|
current_get_buf = 0;
|