[Midnightbsd-cvs] src: dist.c: Revert changes in this file to test against the recent

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Jul 21 20:18:47 EDT 2008


Log Message:
-----------
Revert changes in this file to test against the recent failure with sysinstall package installation.

Tags:
----
RELENG_0_2

Modified Files:
--------------
    src/usr.sbin/sysinstall:
        dist.c (r1.6 -> r1.6.2.1)

-------------- next part --------------
Index: dist.c
===================================================================
RCS file: /home/cvs/src/usr.sbin/sysinstall/dist.c,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -L usr.sbin/sysinstall/dist.c -L usr.sbin/sysinstall/dist.c -u -r1.6 -r1.6.2.1
--- usr.sbin/sysinstall/dist.c
+++ usr.sbin/sysinstall/dist.c
@@ -348,7 +348,7 @@
     cp = alloca(strlen(tmp) + 1);
     if (!cp)
 	msgFatal("Couldn't alloca() %d bytes!\n", (int)(strlen(tmp) + 1));
-    strlcpy(cp, tmp, sizeof(cp));
+    strcpy(cp, tmp);
     while (cp) {
 	if ((cp2 = index(cp, ' ')) != NULL)
 	    *(cp2++) = '\0';
@@ -721,7 +721,7 @@
 	*col += strlen(me[i].my_name);
 	if (*col > 50) {
 	    *col = 0;
-	    strlcat(buf, "\n", sizeof(buf));
+	    strcat(buf, "\n");
 	}
 	sprintf(&buf[strlen(buf)], " %s", me[i].my_name);
 


More information about the Midnightbsd-cvs mailing list