diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 10:01:45 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-06 10:01:45 +0200 |
commit | 8d196aeec728fea0450c0b42db114127e85d64e0 (patch) | |
tree | f79237bee3c6abf6ec5e52ff63051a16236e3962 | |
parent | 9110ae6eaed8e36313d0b61860aeed4f1d12d3b7 (diff) |
kernel: use Etoolong[] constant instead of string literal in validname0()
-rw-r--r-- | sys/src/9/port/chan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c index c40010199..e623b9c94 100644 --- a/sys/src/9/port/chan.c +++ b/sys/src/9/port/chan.c @@ -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){ |