Subject: Re: HEADS UP: Merge the gehenna-devsw branch.
To: None <bishop@rr.iij4u.or.jp>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: current-users
Date: 09/15/2002 22:29:40
In article <20020915.221346.68532750.bishop@rr.iij4u.or.jp>
bishop@rr.iij4u.or.jp wrote:

> Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> wrote:

> >It seems that devsw_name2blk() (which is called from
> >cats/autoconf.c:get_device()) copies wrong strings into
> >devname arg for the device name. Is the attached patch correct?
> 
> it seems to be still wrong. how about this?

I think strncpy will append '\0' if source length is less than
specified length. The statement "devname[devnamelen - 1] = '\0';"
is required only if strlen(conv->d_name) is equal or more than
devnamelen.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp