projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move resize.c into lib-ui.
[apps/madmutt.git]
/
lib-sys
/
unix.c
diff --git
a/lib-sys/unix.c
b/lib-sys/unix.c
index
4f189c1
..
8a1b860
100644
(file)
--- a/
lib-sys/unix.c
+++ b/
lib-sys/unix.c
@@
-183,7
+183,7
@@
int getdnsdomainname(char *s, ssize_t n)
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;
}