kernel: use Etoolong[] constant instead of string literal in validname0()

This commit is contained in:
cinap_lenrek 2015-08-06 10:01:45 +02:00
parent 9110ae6eae
commit 8d196aeec7

View file

@ -1738,7 +1738,7 @@ validname0(char *aname, int slashok, int dup, uintptr pc)
ename = memchr(name, 0, (1<<16));
if(ename==nil || ename-name>=(1<<16))
error("name too long");
error(Etoolong);
s = nil;
if(dup){