$OpenBSD: patch-radius_src_dbmrec_c,v 1.1 2004/05/11 13:46:20 naddy Exp $ --- radius/src/dbmrec.c.orig 2004-05-08 18:15:30.000000000 +0200 +++ radius/src/dbmrec.c 2004-05-08 18:15:39.000000000 +0200 @@ -137,7 +137,7 @@ char * argv[]; } else { printf("Recode <%s> len %d\n", key.dptr, rec.dsize); ptr = rec.dptr; - rec.dptr[rec.dsize] = '\0'; + ptr[rec.dsize] = '\0'; values = (VALUE_PAIR *)NULL;