summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-04 00:14:08 +0000
committerJeremy Allison <jra@samba.org>2001-11-04 00:14:08 +0000
commit30be58a857e874fe439256726fbe182a2b578f11 (patch)
tree1fffcaaa6c0d0fdc76bb24c0ad8bcebb7758a2b5 /source3/libsmb/namequery.c
parentf8e2baf39eb864481dd48f61404136b325cd73c2 (diff)
downloadsamba-30be58a857e874fe439256726fbe182a2b578f11.tar.gz
samba-30be58a857e874fe439256726fbe182a2b578f11.tar.bz2
samba-30be58a857e874fe439256726fbe182a2b578f11.zip
Got serious about const again.
REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in.... They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure it's not being used correctly.... Jeremy. (This used to be commit b1930abb35dee74f858a3f7190276c418af2322b)
Diffstat (limited to 'source3/libsmb/namequery.c')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 0dbf4b4564..1e284aab19 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -205,7 +205,7 @@ BOOL name_register(int fd, const char *name, int name_type,
register_ip.s_addr = name_ip.s_addr; /* Fix this ... */
- bzero((char *)&p, sizeof(p));
+ memset((char *)&p, '\0', sizeof(p));
*count = 0;
@@ -237,7 +237,7 @@ BOOL name_register(int fd, const char *name, int name_type,
}
- bzero((char *)nmb->additional, sizeof(struct res_rec));
+ memset((char *)nmb->additional, '\0', sizeof(struct res_rec));
nmb->additional->rr_name = nmb->question.question_name;
nmb->additional->rr_type = RR_TYPE_NB;