> > strncpy(kim_data->dev_name, buf, count); > > + kim_data->dev_name[count - 1] = '\n'; > > Of course this does not add termination, but adds a newline at the end of the > buffer? Huh?
strlcpy?
signature.asc
Description: Digital signature
> > strncpy(kim_data->dev_name, buf, count); > > + kim_data->dev_name[count - 1] = '\n'; > > Of course this does not add termination, but adds a newline at the end of the > buffer? Huh?
strlcpy?
signature.asc
Description: Digital signature