summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:10:11 +0500
committerSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:10:11 +0500
commite0d44409373f6b3c8ba61c1f7be0deac088a250d (patch)
tree33366374eacc6fe6200ed68130c0a1d0dbef3ef0
parent70c6b489df419e8a92e05aa3a116e284fc3c6aab (diff)
Equal sized buffer copy, no truncation happens.
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 1914d51..ff4d705 100644
--- a/session.c
+++ b/session.c
@@ -321,8 +321,8 @@ auth_request(struct session *s)
struct auth_req req;
memset(&req, 0, sizeof(req));
- strlcpy(req.user, s->user, sizeof(req.user));
- strlcpy(req.pass, s->pass, sizeof(req.pass));
+ (void)strlcpy(req.user, s->user, sizeof(req.user));
+ (void)strlcpy(req.pass, s->pass, sizeof(req.pass));
imsgev_xcompose(&iev_pop3d, IMSG_AUTH, s->id, 0, -1,
&req, sizeof(req), "auth_request");
}