fix a typo causing memory corruption (thanks valgrind)

This commit is contained in:
Andreas Öman 2007-08-21 19:21:35 +00:00
parent 19158b9410
commit d440e8ff3a

View file

@ -734,7 +734,7 @@ client_data_read(client_t *c)
memcpy(buf, c->c_input_buf, i);
buf[i] = 0;
i++;
memmove(c->c_input_buf, c->c_input_buf + i, sizeof(c->c_input_buf) - 1);
memmove(c->c_input_buf, c->c_input_buf + i, sizeof(c->c_input_buf) - i);
c->c_input_buf_ptr -= i;
i = strlen(buf);