X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fstore-simple.c;h=a66053eef1ac3897317ae2803eddcbd467c1f60a;hb=dddebb0ed8feb5ece494dbef1cb24ad2d4699b45;hp=ef68e1113061bfa4a4e244423b4f53833c62edd7;hpb=c5521806064224d3275d7a54ff95d329905804d7;p=bluesky.git diff --git a/bluesky/store-simple.c b/bluesky/store-simple.c index ef68e11..a66053e 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; @@ -157,6 +157,7 @@ static void simplestore_task(gpointer a, gpointer b) async->data = bluesky_string_new(data, result); async->result = 0; + async->range_done = TRUE; break; }