summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/ead/src/ead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/ead/src/ead.c b/package/ead/src/ead.c
index 91f6fbaf7..6a01ea42d 100644
--- a/package/ead/src/ead.c
+++ b/package/ead/src/ead.c
@@ -344,7 +344,7 @@ handle_set_username(struct ead_packet *pkt, int len, int *nstate)
set_state(EAD_TYPE_SET_USERNAME); /* clear old state */
strncpy(username, user->username, sizeof(username));
- username[sizeof(username)] = 0;
+ username[sizeof(username) - 1] = 0;
msg = &pktbuf->msg;
msg->len = 0;