uclient-fetch: read_data_cb: fix a potential buffer overflow