]> git.pld-linux.org Git - packages/SysVinit.git/blob - sysvinit-maxproclen.patch
- Th will support upstart only.
[packages/SysVinit.git] / sysvinit-maxproclen.patch
1 --- sysvinit-2.86/src/init.c.cmdline    2005-10-26 12:56:47.328580896 +0400
2 +++ sysvinit-2.86/src/init.c    2005-10-26 12:48:43.823084904 +0400
3 @@ -466,7 +466,7 @@
4  
5         if (maxproclen > 2) {
6                 memset(argv0, 0, maxproclen);
7 -               strncpy(argv0, buf, maxproclen - 2);
8 +               strncpy(argv0, buf, maxproclen - 1);
9         }
10  
11         return len;
This page took 0.178461 seconds and 3 git commands to generate.