* Increase buffer size for path checking to normal limit PATH_MAX+1
authorDr. Werner Fink <werner@suse.de>
Fri, 19 Mar 2010 14:10:55 +0000 (14:10 +0000)
committerDr. Werner Fink <werner@suse.de>
Fri, 19 Mar 2010 14:10:55 +0000 (14:10 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@43 456724a4-4300-0410-8514-c89748c515a2

src/killall5.c

index 6696119f391946295ce95d39c4095ba261f7ee3f..5937d98efd1bdfad4515535b9b9dab3daf2e9741 100644 (file)
@@ -454,8 +454,8 @@ int readproc(int do_stat)
        PROC            *p, *n;
        struct dirent   *d;
        struct stat     st;
-       char            path[256];
-       char            buf[256];
+       char            path[PATH_MAX+1];
+       char            buf[PATH_MAX+1];
        char            *s, *q;
        unsigned long   startcode, endcode;
        int             pid, f;