On (09/27/07 17:46), Artem Kachitchkine wrote: > > The first thing any ioctl handler does is validate arguments and > immediately return EINVAL if something's wrong. That could include cases > with strings that are not nul-terminated. The advantage is that the rest of > the code doesn't have to worry about it.
true, but the general convention in networking seems to be adopt strn* functions. maybe to protect against very long strings? not sure. --Sowmini
