$(top_builddir)/lib-mime/libmime.a \
$(top_builddir)/lib-crypt/libcrypt.a \
$(top_builddir)/lib-hash/libhash.a \
+ $(top_builddir)/lib-sys/libsys.a \
$(top_builddir)/lib-ui/libui.a \
$(top_builddir)/lib-lua/liblua.a \
$(top_builddir)/lib-mx/libmx.a \
}
p = pw->pw_gecos + pat_match[0].rm_so;
- end = pw->pw_gecos + pat_match[0].rm_so;
+ end = pw->pw_gecos + pat_match[0].rm_eo;
} else {
p = pw->pw_gecos;
end = m_strchrnul(pw->pw_gecos, ',');
}
for (;;) {
- const char *q = MIN(end, m_strchrnul(p, '&'));
+ const char *q = m_strchrnul(p, '&');
- len += m_strncpy(dst + len, n - len, p, q - p);
+ len += m_strncpy(dst + len, n - len, p, MIN(end, q) - p);
p = q + 1;
if (!p[-1] || p >= end)