Commit b23dc579 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

sres_cache.c: fixed problem using macro as offsetof() argument.

parent 41add8ff
......@@ -272,7 +272,7 @@ sres_cache_alloc_record(sres_cache_t *cache,
sr->sr_name = memcpy(s, template->sr_name, name_length);
sr->sr_name[name_length] = '\0';
memcpy(&sr->sr_status, &template->sr_status,
size - offsetof(sres_record_t, sr_status));
size - offsetof(sres_common_t, r_status));
return sr;
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