Commit ffacc8f2 authored by Matthieu Dorier's avatar Matthieu Dorier

corrected bug in read_op_exec_omap_get_keys

parent 7773042e
......@@ -285,7 +285,7 @@ void read_op_exec_omap_get_keys(void* u, const char* start_after, uint64_t max_r
}
omap_iter_create(iter);
size_t lb_size = sizeof(omap_key_t)+strlen(start_after);
size_t lb_size = sizeof(omap_key_t)+MAX_OMAP_KEY_SIZE;
omap_key_t* lb = (omap_key_t*)calloc(1, lb_size);
lb->oid = oid;
strcpy(lb->key, start_after);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment