summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:07:01 +0500
committerSunil Nimmagadda <sunil@sunilnimmagadda.com>2014-04-19 19:07:01 +0500
commit70c6b489df419e8a92e05aa3a116e284fc3c6aab (patch)
treeb018a3a1534f672a03d17c6e5e80f15d78569304
parent88462e90c807b1a0da16f79aa753b4b0e32dfe74 (diff)
args are checked for size in parse function. Cast to void as no truncation check required here.
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index aa5d583..1914d51 100644
--- a/session.c
+++ b/session.c
@@ -290,7 +290,7 @@ auth_command(struct session *s, int cmd, char *args)
capa(s);
break;
case CMD_USER:
- strlcpy(s->user, args, sizeof(s->user));
+ (void)strlcpy(s->user, args, sizeof(s->user));
session_reply(s, "%s", "+OK");
break;
case CMD_PASS:
@@ -298,7 +298,7 @@ auth_command(struct session *s, int cmd, char *args)
session_reply(s, "%s", "-ERR no USER specified");
break;
}
- strlcpy(s->pass, args, sizeof(s->pass));
+ (void)strlcpy(s->pass, args, sizeof(s->pass));
auth_request(s);
return;
case CMD_QUIT: