Commit b23dc579 authored by Pekka Pessi's avatar Pekka Pessi

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

darcs-hash:20060504193514-65a35-f5bb604f8f88b6e4887e71144b76d5d929b96726.gz
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