git: 9front

Download patch

ref: 5b7fe4a8f96431209afc5c4432634a5afa44efdf
parent: 3de8cf74fb377c16a5253bd2bbd48ae40afd2fab
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Aug 6 06:01:45 EDT 2015

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

--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -1738,7 +1738,7 @@
 		ename = memchr(name, 0, (1<<16));
 
 	if(ename==nil || ename-name>=(1<<16))
-		error("name too long");
+		error(Etoolong);
 
 	s = nil;
 	if(dup){
--