From f731666f48ff8545cda808739630bd474f024ce8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Sep 2004 19:51:26 +0000 Subject: [PATCH] Update. 2004-09-17 Jakub Jelinek * nscd/nscd.c (parse_opt): Write arg string instead of (void *) key to the socket. --- ChangeLog | 5 +++++ nscd/nscd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 30fddd9..d06511f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-17 Jakub Jelinek + + * nscd/nscd.c (parse_opt): Write arg string instead of (void *) + key to the socket. + 2004-09-17 Ulrich Drepper * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute diff --git a/nscd/nscd.c b/nscd/nscd.c index b0e7a20..51aed02 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -340,7 +340,7 @@ parse_opt (int key, char *arg, struct argp_state *state) iov[0].iov_base = &req; iov[0].iov_len = sizeof (req); - iov[1].iov_base = (void *) key; + iov[1].iov_base = arg; iov[1].iov_len = req.key_len; nbytes = TEMP_FAILURE_RETRY (writev (sock, iov, 2)); -- 2.7.4