From: harald@redhat.com Date: Wed, 6 Oct 2004 07:27:10 +0000 (-0700) Subject: [PATCH] PATCH some cleanups and security fixes X-Git-Tag: 033~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a551c7b0ceb72145a5256cdd53b0b52ff9f766de;p=systemd [PATCH] PATCH some cleanups and security fixes posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351 --- diff --git a/udevstart.c b/udevstart.c index 9c1d6950..ba637456 100644 --- a/udevstart.c +++ b/udevstart.c @@ -211,7 +211,7 @@ static void udev_scan_class(void) dir2 = opendir(dirname); if (dir2 != NULL) { for (dent2 = readdir(dir2); dent2 != NULL; dent2 = readdir(dir2)) { - char dirname2[MAX_PATHLEN-1]; + char dirname2[MAX_PATHLEN]; DIR *dir3; struct dirent *dent3;