summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharald@redhat.com <harald@redhat.com>2004-10-06 00:27:10 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:03 -0700
commita551c7b0ceb72145a5256cdd53b0b52ff9f766de (patch)
tree5399b9c3d2ec6eea25442fbb05e8bee5267f8455
parent470c0ef2a6483d1b150d52319eb03b87f7744ea0 (diff)
downloadsystemd-a551c7b0ceb72145a5256cdd53b0b52ff9f766de.tar.gz
[PATCH] PATCH some cleanups and security fixes
posted by Steve Grubb on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=130351
-rw-r--r--udevstart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevstart.c b/udevstart.c
index 9c1d69503d..ba63745620 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;