patches for easier mirroring, to eliminate a special copy, to make www.freebsd.org/security a full copy of security.freebsd.org and be eventually be the same. For now files are just sitting there. The symlinks are missing. Discussed on: www (repository location) Discussed with: simon (so)
16 lines
597 B
Diff
16 lines
597 B
Diff
Index: contrib/opie/libopie/readrec.c
|
|
===================================================================
|
|
--- contrib/opie/libopie/readrec.c (revision 208306)
|
|
+++ contrib/opie/libopie/readrec.c (working copy)
|
|
@@ -141,10 +141,8 @@
|
|
|
|
if (c = strchr(opie->opie_principal, ':'))
|
|
*c = 0;
|
|
- if (strlen(opie->opie_principal) > OPIE_PRINCIPAL_MAX)
|
|
- (opie->opie_principal)[OPIE_PRINCIPAL_MAX] = 0;
|
|
|
|
- strcpy(principal, opie->opie_principal);
|
|
+ strlcpy(principal, opie->opie_principal, sizeof(principal));
|
|
|
|
do {
|
|
if ((opie->opie_recstart = ftell(f)) < 0)
|