Re: Does struct qstr->name should be terminated ?
From: Matthew Wilcox <hidden>
Date: 2004-03-24 13:05:35
From: Matthew Wilcox <hidden>
Date: 2004-03-24 13:05:35
On Wed, Mar 24, 2004 at 10:09:26AM +0100, Jan Hudec wrote:
I'd think that it's treated as a nomral string in quite a few places, so it needs to be NUL terminated. (But not searched the sources.)
Why not? It isn't hard to find. fs/dcache.c:703: str[name->len] = 0; -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain