mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
[PATCH] fix stupid off-by-one bug that caused udevstart to die on x86-64 boxes.
This commit is contained in:
parent
bf21ea08b3
commit
462be028f1
@ -228,7 +228,7 @@ static void udev_scan_class(void)
|
||||
continue;
|
||||
|
||||
snprintf(dirname, MAX_PATHLEN, "%s/%s", SYSCLASS, dent->d_name);
|
||||
dirname[MAX_PATHLEN] = '\0';
|
||||
dirname[MAX_PATHLEN-1] = '\0';
|
||||
dir2 = opendir(dirname);
|
||||
if (dir2 != NULL) {
|
||||
for (dent2 = readdir(dir2); dent2 != NULL; dent2 = readdir(dir2)) {
|
||||
|
Loading…
Reference in New Issue
Block a user