summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2008-02-06 08:44:34 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2008-02-06 08:44:34 (GMT)
commita899d134fb11a7cd835d9a2266d31451287c7d14 (patch) (unidiff)
tree245a78db834bc46c156ce99e07fbb89b4a8a77d6
parent77757c8d84e0fdde04be923c8a7f3ea8cd7bcf39 (diff)
downloadmailfromd-a899d134fb11a7cd835d9a2266d31451287c7d14.tar.gz
mailfromd-a899d134fb11a7cd835d9a2266d31451287c7d14.tar.bz2
* src/dnsbase.c (dns_resolve_hostname,a_lookup): Change
initialization of domainbuf. * src/syslog_async.c: Include fcntl.h. git-svn-id: file:///svnroot/mailfromd/trunk@1604 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog6
-rw-r--r--src/dnsbase.c8
-rw-r--r--src/syslog_async.c1
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0335e49..adb0863 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12008-02-06 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * src/dnsbase.c (dns_resolve_hostname,a_lookup): Change
4 initialization of domainbuf.
5 * src/syslog_async.c: Include fcntl.h.
6
12008-02-04 Sergey Poznyakoff <gray@gnu.org.ua> 72008-02-04 Sergey Poznyakoff <gray@gnu.org.ua>
2 8
3 * configure.ac: Check for locale.h 9 * configure.ac: Check for locale.h
diff --git a/src/dnsbase.c b/src/dnsbase.c
index 3d06316..ba5de17 100644
--- a/src/dnsbase.c
+++ b/src/dnsbase.c
@@ -576,8 +576,9 @@ dns_resolve_hostname(const char *host, char *answer, size_t answer_size,
576{ 576{
577 struct loop_data ld; 577 struct loop_data ld;
578 char namebuf[NSIZE]; 578 char namebuf[NSIZE];
579 char domainbuf[NSIZE] = ""; 579 char domainbuf[NSIZE];
580 580
581 domainbuf[0] = 0;
581 ld.qtype = ld.atype = T_A; 582 ld.qtype = ld.atype = T_A;
582 583
583 strncpy(namebuf, host, sizeof namebuf - 1); 584 strncpy(namebuf, host, sizeof namebuf - 1);
@@ -616,8 +617,9 @@ a_lookup(const char *host,
616{ 617{
617 struct loop_data ld; 618 struct loop_data ld;
618 char namebuf[NSIZE]; 619 char namebuf[NSIZE];
619 char domainbuf[NSIZE] = ""; 620 char domainbuf[NSIZE];
620 621
622 domainbuf[0] = 0;
621 ld.qtype = ld.atype = T_A; 623 ld.qtype = ld.atype = T_A;
622 strncpy(namebuf, host, sizeof namebuf - 1); 624 strncpy(namebuf, host, sizeof namebuf - 1);
623 ld.name = namebuf; 625 ld.name = namebuf;
diff --git a/src/syslog_async.c b/src/syslog_async.c
index 006cf16..0882f7b 100644
--- a/src/syslog_async.c
+++ b/src/syslog_async.c
@@ -24,6 +24,7 @@
24#include <sys/syslog.h> 24#include <sys/syslog.h>
25#include <netinet/in.h> 25#include <netinet/in.h>
26#include <signal.h> 26#include <signal.h>
27#include <fcntl.h>
27 28
28#include <sys/uio.h> 29#include <sys/uio.h>
29#include <sys/wait.h> 30#include <sys/wait.h>

Return to:

Send suggestions and report system problems to the System administrator.