projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move all the parameter related functions into the lib-mime.
[apps/madmutt.git]
/
lib-sys
/
unix.c
diff --git
a/lib-sys/unix.c
b/lib-sys/unix.c
index
4f189c1
..
a83d4bc
100644
(file)
--- a/
lib-sys/unix.c
+++ b/
lib-sys/unix.c
@@
-29,7
+29,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, rx_t *rx)
+ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, r
ege
x_t *rx)
{
const char *p, *end;
ssize_t len;
{
const char *p, *end;
ssize_t len;
@@
-43,7
+43,7
@@
ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, rx_t *rx)
if (rx) {
regmatch_t pat_match[1];
if (rx) {
regmatch_t pat_match[1];
- if (regexec(rx
->rx
, pw->pw_gecos, 1, pat_match, 0)) {
+ if (regexec(rx, pw->pw_gecos, 1, pat_match, 0)) {
return 0;
}
return 0;
}
@@
-183,7
+183,7
@@
int getdnsdomainname(char *s, ssize_t n)
trailing_dot = q[-1] == '.';
if (!trailing_dot || q > p + 1) {
trailing_dot = q[-1] == '.';
if (!trailing_dot || q > p + 1) {
- m_strncpy(s, n, p,
p - q - trailing_dot
);
+ m_strncpy(s, n, p,
q - trailing_dot - p
);
safe_fclose(&f);
return 0;
}
safe_fclose(&f);
return 0;
}