projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make lua packages interfaces be *.li.
[apps/madmutt.git]
/
lib-sys
/
unix.c
diff --git
a/lib-sys/unix.c
b/lib-sys/unix.c
index
38389b2
..
9054435
100644
(file)
--- a/
lib-sys/unix.c
+++ b/
lib-sys/unix.c
@@
-20,7
+20,7
@@
* otherwise assume that the GECOS field is a comma-separated list.
* Replace "&" by a capitalized version of the user's login name.
*/
* otherwise assume that the GECOS field is a comma-separated list.
* Replace "&" by a capitalized version of the user's login name.
*/
-ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, r
ege
x_t *rx)
+ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, rx_t *rx)
{
const char *p, *end;
ssize_t len;
{
const char *p, *end;
ssize_t len;
@@
-31,10
+31,10
@@
ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, regex_t *rx)
if (!pw->pw_gecos)
return 0;
if (!pw->pw_gecos)
return 0;
- if (rx) {
+ if (rx
->rx
) {
regmatch_t pat_match[1];
regmatch_t pat_match[1];
- if (regexec(rx, pw->pw_gecos, 1, pat_match, 0)) {
+ if (regexec(rx
->rx
, pw->pw_gecos, 1, pat_match, 0)) {
return 0;
}
return 0;
}