diff -ru sbin/rcorder.orig/hash.c sbin/rcorder/hash.c --- sbin/rcorder.orig/hash.c 2003-11-01 15:16:01.000000000 -0200 +++ sbin/rcorder/hash.c 2004-10-25 22:32:38.000000000 -0200 @@ -263,7 +263,7 @@ *hp = e; e->clientData = NULL; e->namehash = h; - (void) strcpy(e->name, p); + strlcpy(e->name, p, keylen); t->numEntries++; if (newPtr != NULL) diff -ru sbin/rcorder.orig/rcorder.c sbin/rcorder/rcorder.c --- sbin/rcorder.orig/rcorder.c 2004-02-04 15:40:01.000000000 -0200 +++ sbin/rcorder/rcorder.c 2004-10-25 22:34:04.000000000 -0200 @@ -221,7 +221,7 @@ ent = emalloc(sizeof *ent + strlen(s)); ent->node = fnode; - strcpy(ent->s, s); + strlcpy(ent->s, s, strlen(s)); ent->next = *listp; *listp = ent; } @@ -371,7 +371,7 @@ bf_ent = emalloc(sizeof *bf_ent + strlen(s)); bf_ent->node = fnode; - strcpy(bf_ent->s, s); + strlcpy(bf_ent->s, s, strlen(s)); bf_ent->next = bl_list; bl_list = bf_ent; }