summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-05-13 11:14:37 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-05-13 11:14:37 +0200
commit918e791bc8e34f1298a4280d696f5559b35e9cf9 (patch)
tree79b7dfb1b5b6b0241c2b82a6c7ece67d8c596d6f /sys/src
parentd83edb22d47134d0bafbdeb45325a68c090b6983 (diff)
parent63a14bfe8abf53384070fcf068aa3458eaf68a6e (diff)
merge
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/upas/marshal/marshal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/cmd/upas/marshal/marshal.c b/sys/src/cmd/upas/marshal/marshal.c
index b25256801..f62fc9e28 100644
--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -1847,9 +1847,14 @@ hard:
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;
}