- if ((i = readlink(state.path.buf, buf.buf, buf.sz)) < 0) {
- report(cp, CP_ERROR, 0, state.path.buf, "can't readlink: %e");
+ if ((i = readlink(state->path.buf, buf.buf, buf.sz)) < 0) {
+ report(cp, CP_ERROR, 0, state->path.buf, "can't readlink: %e");