Loading...
gen/FreeBSD/setprogname.c.patch Libc-594.9.5 Libc-498
--- Libc/Libc-594.9.5/gen/FreeBSD/setprogname.c.patch
+++ Libc/Libc-498/gen/FreeBSD/setprogname.c.patch
@@ -1,5 +1,5 @@
---- setprogname.c.orig	2008-01-31 02:47:06.000000000 -0800
-+++ setprogname.c	2008-01-31 03:07:50.000000000 -0800
+--- setprogname.c.orig	2005-10-19 15:16:49.000000000 -0700
++++ setprogname.c	2005-10-19 15:17:10.000000000 -0700
 @@ -3,6 +3,10 @@
  
  #include <stdlib.h>
@@ -33,5 +33,5 @@
 +	mib[1] = KERN_PROCNAME;
 +
 +	/* ignore errors as this is not a hard error */
-+	sysctl(mib, 2, NULL, NULL, &buf[0], strlen(buf));
++	sysctl(mib, 2, NULL, NULL, &buf[0], 2*MAXCOMLEN);
  }