X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fstore-simple.c;h=25eef53321e30a08c5efb125c2af8f774add2429;hb=3545d572eecff2a6e0ad53bfae3ed0c35f232cbe;hp=ef68e1113061bfa4a4e244423b4f53833c62edd7;hpb=c5521806064224d3275d7a54ff95d329905804d7;p=bluesky.git diff --git a/bluesky/store-simple.c b/bluesky/store-simple.c index ef68e11..25eef53 100644 --- a/bluesky/store-simple.c +++ b/bluesky/store-simple.c @@ -143,7 +143,7 @@ static void simplestore_task(gpointer a, gpointer b) char *data = g_malloc(result); if (strchr(result_buf, '\n') != NULL) { - int header_size = strchr(result_buf, '\n') - result_buf; + int header_size = strchr(result_buf, '\n') - result_buf + 1; int data_bytes = bytes - header_size; if (data_bytes > result) data_bytes = result;