diff options
author | Sunil Nimmagadda <sunil@sunilnimmagadda.com> | 2014-04-19 19:10:11 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@sunilnimmagadda.com> | 2014-04-19 19:10:11 +0500 |
commit | e0d44409373f6b3c8ba61c1f7be0deac088a250d (patch) | |
tree | 33366374eacc6fe6200ed68130c0a1d0dbef3ef0 | |
parent | 70c6b489df419e8a92e05aa3a116e284fc3c6aab (diff) |
Equal sized buffer copy, no truncation happens.
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |