summaryrefslogtreecommitdiff
path: root/package/ead/src/ead.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/ead/src/ead.c')
-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 7367c38..c4d3dd9 100644
--- a/package/ead/src/ead.c
+++ b/package/ead/src/ead.c
@@ -330,7 +330,7 @@ handle_ping(struct ead_packet *pkt, int len, int *nstate)
msg->len = htonl(sizeof(struct ead_msg_pong) + slen);
strncpy(pong->name, dev_name, slen);
- pong->name[len] = 0;
+ pong->name[slen] = 0;
pong->auth_type = htons(EAD_AUTH_MD5);
return true;