shithub: riscv

Download patch

ref: 8d196aeec728fea0450c0b42db114127e85d64e0
parent: 9110ae6eaed8e36313d0b61860aeed4f1d12d3b7
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){