=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/oldrdist/Attic/server.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/oldrdist/Attic/server.c 2003/04/05 17:18:26 1.21 --- src/usr.bin/oldrdist/Attic/server.c 2003/04/06 17:57:45 1.22 *************** *** 1,4 **** ! /* $OpenBSD: server.c,v 1.21 2003/04/05 17:18:26 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 --- 1,4 ---- ! /* $OpenBSD: server.c,v 1.22 2003/04/06 17:57:45 ho Exp $ */ /* * Copyright (c) 1983, 1993 *************** *** 35,41 **** #ifndef lint /* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */ ! static char *rcsid = "$OpenBSD: server.c,v 1.21 2003/04/05 17:18:26 deraadt Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */ ! static char *rcsid = "$OpenBSD: server.c,v 1.22 2003/04/06 17:57:45 ho Exp $"; #endif /* not lint */ #include *************** *** 251,257 **** if (opts & WHOLE) source[0] = '\0'; else ! strcpy(source, src); if (dest == NULL) { opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ --- 251,257 ---- if (opts & WHOLE) source[0] = '\0'; else ! strlcpy(source, src, sizeof source); if (dest == NULL) { opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ *************** *** 582,591 **** lp->inum = stp->st_ino; lp->devnum = stp->st_dev; lp->count = stp->st_nlink - 1; ! strcpy(lp->pathname, target); ! strcpy(lp->src, source); if (Tdest) ! strcpy(lp->target, Tdest); else *lp->target = 0; } --- 582,591 ---- lp->inum = stp->st_ino; lp->devnum = stp->st_dev; lp->count = stp->st_nlink - 1; ! strlcpy(lp->pathname, target, sizeof lp->pathname); ! strlcpy(lp->src, source, sizeof lp->src); if (Tdest) ! strlcpy(lp->target, Tdest, sizeof lp->target); else *lp->target = 0; }