projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d230947
)
oops, bad formula
author
Pierre Habouzit
<madcoder@debian.org>
Sun, 12 Nov 2006 14:39:03 +0000
(15:39 +0100)
committer
Pierre Habouzit
<madcoder@debian.org>
Sun, 12 Nov 2006 14:39:03 +0000
(15:39 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-sys/unix.c
patch
|
blob
|
history
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;
}