- strncpy(line, bufline, count);
- line[count] = '\0';
- temp = line;
- dbg_parse("read '%s'", temp);
-
- retval = parse_get_pair(&temp, &variable, &value);
- if (retval != 0)
- info("%s:%d:%Zd: error parsing '%s'",
- udev_config_filename, lineno, temp-line, temp);
-
- dbg_parse("variable='%s', value='%s'", variable, value);
-
- if (strcasecmp(variable, "udev_root") == 0) {
- strfieldcpy(udev_root, value);
- no_trailing_slash(udev_root);
+ if (count >= sizeof(line)) {
+ err("line too long, conf line skipped %s, line %d", udev_config_filename, lineno);