Commit 6fa0801a authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] fix /proc/ide/hdX/settings

Blind strncpy()->strlcpy() conversion in 2.5.70
made it impossible to change any setting, revert it.
parent 0c0146c2
......@@ -522,7 +522,8 @@ int proc_ide_write_settings
if (*p != ':')
goto parse_error;
len = IDE_MIN(p - start, MAX_LEN);
strlcpy(name, start, IDE_MIN(len, MAX_LEN));
strncpy(name, start, IDE_MIN(len, MAX_LEN));
name[len] = 0;
if (n > 0) {
--n;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment