source:
patches/sysvinit-2.85-proclen-1.patch@
873009c
Last change on this file since 873009c was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 756 bytes |
-
src/init.c
Submitted By: Alexander E. Patrakov (semzx at newmail dot ru) Origin: Alexander E. Patrakov Date: 2003-11-22 Initial Package Version: 2.85 Description: Without this patch, init sometimes clobbers environment variables set by kernel (such as TERM) when trying to change process title for ps due to out-of-bounds access to the command line arguments. diff -ur sysvinit-2.85/src/init.c sysvinit-2.85-fixed/src/init.c
old new 432 432 len = vsnprintf(buf, sizeof(buf), fmt, ap); 433 433 va_end(ap); 434 434 435 memset(argv0, 0, maxproclen + 1);435 memset(argv0, 0, maxproclen); 436 436 strncpy(argv0, buf, maxproclen - 1); 437 437 438 438 return len;
Note:
See TracBrowser
for help on using the repository browser.