]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix a typo causing memory corruption (thanks valgrind)
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 21 Aug 2007 19:21:35 +0000 (19:21 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 21 Aug 2007 19:21:35 +0000 (19:21 +0000)
htsclient.c

index 22bda2360be38a53eb355decc4a1f41e601e8bdc..090c13668ce4de6d21a44f487b9aa1328d5cae95 100644 (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);