projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9baa08f
)
fix warning of scan-build; it doesn't see we would exit() before.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 10 Feb 2013 19:08:18 +0000
(20:08 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 10 Feb 2013 19:08:18 +0000
(20:08 +0100)
citadel/utils/citmail.c
patch
|
blob
|
history
diff --git
a/citadel/utils/citmail.c
b/citadel/utils/citmail.c
index becdb9abc870b5fdf5a0154d4832d0a2fe273c79..651e561d7391fa269cd71d77cb868fddb3d09418 100644
(file)
--- a/
citadel/utils/citmail.c
+++ b/
citadel/utils/citmail.c
@@
-228,7
+228,9
@@
int main(int argc, char **argv) {
if (debug) fprintf(stderr, "citmail: error parsing hostname\n");
cleanup(3);
}
- *ep = '\0';
+ else
+ *ep = '\0';
+
strncpy(hostname, sp, sizeof hostname);
snprintf(fromline, sizeof fromline, "From: %s@%s", pw->pw_name, hostname);