1
1
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:
greg@kroah.com 2004-07-09 18:46:08 -07:00 committed by Greg KH
parent bf21ea08b3
commit 462be028f1

View File

@ -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)) {