shithub: riscv

Download patch

ref: 918e791bc8e34f1298a4280d696f5559b35e9cf9
parent: d83edb22d47134d0bafbdeb45325a68c090b6983
parent: 63a14bfe8abf53384070fcf068aa3458eaf68a6e
author: cinap_lenrek <[email protected]>
date: Fri May 13 07:14:37 EDT 2016

merge

--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -1847,9 +1847,14 @@
 char*
 hdrval(char *p)
 {
+	char *e;
+
 	p = strchr(p, ':') + 1;
 	while(*p == ' ' || *p == '\t')
 		p++;
+	e = strchr(p, 0) - 1;
+	while(e >= p && (*e == ' ' || *e == '\t'))
+		*e-- = 0;
 	return p;
 }